Merge pull request #846 from archite/custom_folder
Allow for having custom scripts outside of bash-it.pull/848/head
commit
d1a7e60931
|
|
@ -129,6 +129,8 @@ For custom scripts, and aliases, just create the following files (they'll be ign
|
|||
|
||||
Anything in the custom directory will be ignored, with the exception of `custom/example.bash`.
|
||||
|
||||
Alternately, if you would like to keep your custom scripts under version control, you can set BASH_IT_CUSTOM in your `~/.bashrc` to another location outside of the `~/.bash_it` folder.
|
||||
|
||||
## Themes
|
||||
|
||||
There are a few Bash-it themes. If you've created your own custom prompts, I'd love it if you shared with everyone else! Just submit a Pull Request.
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ do
|
|||
done
|
||||
|
||||
# Custom
|
||||
CUSTOM="${BASH_IT}/custom/*.bash"
|
||||
CUSTOM="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/*.bash"
|
||||
for config_file in $CUSTOM
|
||||
do
|
||||
if [ -e "${config_file}" ]; then
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export GREP_COLOR='1;33'
|
|||
export LSCOLORS='Gxfxcxdxdxegedabagacad'
|
||||
|
||||
if [[ -z "$CUSTOM_THEME_DIR" ]]; then
|
||||
CUSTOM_THEME_DIR="${BASH_IT}/custom/themes"
|
||||
CUSTOM_THEME_DIR="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/themes"
|
||||
fi
|
||||
|
||||
# Load the theme
|
||||
|
|
|
|||
Loading…
Reference in New Issue