diff options
author | Michael Allen <michael@michaelallen.io> | 2015-09-02 17:42:17 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-09-02 17:43:28 +0100 |
commit | 393013fba5bc7ec3402de4c1b2faf47dd7493c59 (patch) | |
tree | 21a3c739add51acfb329f53bb75f47a757ab1983 /radar-base.sh | |
parent | 1342bd1e5fbef270db72f302bd6c380a7fec29ac (diff) | |
download | git-sonar-393013fba5bc7ec3402de4c1b2faf47dd7493c59.tar.gz git-sonar-393013fba5bc7ec3402de4c1b2faf47dd7493c59.zip |
Allow for shell specific rc files
Diffstat (limited to '')
-rwxr-xr-x | radar-base.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/radar-base.sh b/radar-base.sh index 5672e07..25a4113 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -6,7 +6,9 @@ remote="" rcfile_path="$HOME" prepare_bash_colors() { - if [ -f "$rcfile_path/.gitradarrc" ]; then + if [ -f "$rcfile_path/.gitradarrc.bash" ]; then + source "$rcfile_path/.gitradarrc.bash" + elif [ -f "$rcfile_path/.gitradarrc" ]; then source "$rcfile_path/.gitradarrc" fi @@ -34,7 +36,9 @@ prepare_bash_colors() { } prepare_zsh_colors() { - if [ -f "$rcfile_path/.gitradarrc" ]; then + if [ -f "$rcfile_path/.gitradarrc.zsh" ]; then + source "$rcfile_path/.gitradarrc.zsh" + elif [ -f "$rcfile_path/.gitradarrc" ]; then source "$rcfile_path/.gitradarrc" fi |