diff options
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gist b/scripts/gist index 72601ae..132a185 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -112,6 +112,8 @@ _show_list() { | |||
112 | 112 | ||
113 | # if repo is not yet cloned, show green message "Not cloned yet" | 113 | # if repo is not yet cloned, show green message "Not cloned yet" |
114 | [[ ! -d $repo ]] && extra="\e[32m[Not cloned yet]\e[0m" | 114 | [[ ! -d $repo ]] && extra="\e[32m[Not cloned yet]\e[0m" |
115 | |||
116 | cd $repo | ||
115 | # if there are some changes in git index or working directory, show blue message "working" | 117 | # if there are some changes in git index or working directory, show blue message "working" |
116 | [[ -n $(git status --short) ]] 2>/dev/null && extra="\e[36m[working]\e[0m" | 118 | [[ -n $(git status --short) ]] 2>/dev/null && extra="\e[36m[working]\e[0m" |
117 | # if there is a commit not yet push, show red message "ahead" | 119 | # if there is a commit not yet push, show red message "ahead" |