summaryrefslogtreecommitdiffstats
path: root/git-radar
diff options
context:
space:
mode:
Diffstat (limited to 'git-radar')
-rwxr-xr-xgit-radar21
1 files changed, 0 insertions, 21 deletions
diff --git a/git-radar b/git-radar
index a38f00f..07f0a0a 100755
--- a/git-radar
+++ b/git-radar
@@ -84,37 +84,16 @@ if [[ -z $@ ]]; then
echo " end"
echo ""
echo " Same as the Bash but for fish."
- echo ""
- echo "Fetch_t example:"
- echo " export PS1=\"\\W\\\$(git-radar --bash --fetch_t 45) \""
exit
fi
while [[ $# > 0 ]];do
command="$1"
shift
- # Default fetch of 5 min
if [[ "$command" == "--fetch" ]]; then
nohup $dot/fetch.sh >/dev/null 2>&1 &
fi
- # Custom fetch of whatever time interval the user wants
- if [[ "$command" == "--fetch_t" ]]; then
- # Now $1 is the value for fetch_t
- # If value is not a number produce an error
- if ! [[ $1 =~ ^[0-9]+$ ]] ; then
- echo ""
- echo "Error: fetch_t did not receive a number"
- echo "Defaulting to 5 min."
- echo " "
- nohup $dot/fetch.sh >/dev/null 2>&1 &
- else
- command="$1"
- shift
- nohup $dot/fetch.sh $command >/dev/null 2>&1 &
- fi
- fi
-
if [[ "$command" == "--zsh" ]]; then
$dot/prompt.zsh $args
fi