From 2a4e27cdba4d63bcb538bddd94d18d81f399b3e9 Mon Sep 17 00:00:00 2001 From: Adam Karim Date: Tue, 29 Nov 2016 09:55:13 -0800 Subject: [PATCH] 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