diff options
-rwxr-xr-x | fetch.sh | 9 | ||||
-rwxr-xr-x | git-radar | 12 |
2 files changed, 19 insertions, 2 deletions
@@ -1,6 +1,13 @@ #! /usr/bin/env bash -dot="$(cd "$(dirname "$0")"; pwd)" +if [[ "$OSTYPE" == *darwin* ]]; then + READLINK_CMD='greadlink' +else + READLINK_CMD='readlink' +fi + +dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; pwd)" + source $dot/radar-base.sh fetch; @@ -1,6 +1,16 @@ #! /usr/bin/env bash +# +# git-radar +# +# A heads up display for git -dot="$(cd "$(dirname "$0")"; pwd)" +if [[ "$OSTYPE" == *darwin* ]]; then + READLINK_CMD='greadlink' +else + READLINK_CMD='readlink' +fi + +dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; pwd)" if [[ -z $@ ]]; then _git="\033[1;30mgit:(\033[0m" |