summaryrefslogtreecommitdiffstats
path: root/git-radar
diff options
context:
space:
mode:
authorReinaldo Colina <rcolina@pingidentity.com>2015-08-27 12:14:13 -0700
committerReinaldo Colina <rcolina@pingidentity.com>2015-08-27 12:14:13 -0700
commit637b5d5534469ebb15826139e1b3df12a1cc9309 (patch)
treeceb0d013f13603998946e43795fa4b8408e4af6e /git-radar
parentfd2c201c69ebfd077d6f7be5d09bcdbb147acc59 (diff)
downloadgit-sonar-637b5d5534469ebb15826139e1b3df12a1cc9309.tar.gz
git-sonar-637b5d5534469ebb15826139e1b3df12a1cc9309.zip
issue-17: Add arguments to make the prompt shorter
Diffstat (limited to '')
-rwxr-xr-xgit-radar5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-radar b/git-radar
index a5cd3c1..67b8460 100755
--- a/git-radar
+++ b/git-radar
@@ -11,6 +11,7 @@ else
fi
dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; pwd)"
+args=$@
if [[ -z $@ ]]; then
_git="\033[1;30mgit:(\033[0m"
@@ -92,9 +93,9 @@ while [[ $# > 0 ]];do
nohup $dot/fetch.sh >/dev/null 2>&1 &
fi
if [[ "$command" == "--zsh" ]]; then
- $dot/prompt.zsh
+ $dot/prompt.zsh $args
fi
if [[ "$command" == "--bash" || "$command" == "--fish" ]]; then
- $dot/prompt.bash
+ $dot/prompt.bash $args
fi
done