summaryrefslogtreecommitdiffstats
path: root/radar-base.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-09-02 17:42:17 +0100
committerMichael Allen <michael@michaelallen.io>2015-09-02 17:43:28 +0100
commit393013fba5bc7ec3402de4c1b2faf47dd7493c59 (patch)
tree21a3c739add51acfb329f53bb75f47a757ab1983 /radar-base.sh
parent1342bd1e5fbef270db72f302bd6c380a7fec29ac (diff)
downloadgit-sonar-393013fba5bc7ec3402de4c1b2faf47dd7493c59.tar.gz
git-sonar-393013fba5bc7ec3402de4c1b2faf47dd7493c59.zip
Allow for shell specific rc files
Diffstat (limited to 'radar-base.sh')
-rwxr-xr-xradar-base.sh8
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