From a896cb2c44050b733163eaedf8e51b90c078f249 Mon Sep 17 00:00:00 2001 From: Adam Karim Date: Tue, 29 Nov 2016 09:18:09 -0800 Subject: [PATCH 1/2] Allow for having custom scripts outside of bash-it. --- bash_it.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_it.sh b/bash_it.sh index 0a85fd27..065069ff 100755 --- a/bash_it.sh +++ b/bash_it.sh @@ -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 From 2a4e27cdba4d63bcb538bddd94d18d81f399b3e9 Mon Sep 17 00:00:00 2001 From: Adam Karim Date: Tue, 29 Nov 2016 09:55:13 -0800 Subject: [PATCH 2/2] Updating README. Fixing custom location for themes. --- README.md | 2 ++ lib/appearance.bash | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 70fb763d..cb9e6eeb 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/lib/appearance.bash b/lib/appearance.bash index 05e0e40a..4270f7e4 100644 --- a/lib/appearance.bash +++ b/lib/appearance.bash @@ -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