aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-27 21:34:46 +0800
committertypebrook <typebrook@gmail.com>2020-01-27 21:34:46 +0800
commitebdb1b4a013cef757d02dc67b310dbe504014892 (patch)
treeb87b188495cfd162955891c8b5cffa280b8f5dd2 /scripts
parent71845f9c802cdffe22f4c07be54b1caf9c230df3 (diff)
update
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gist2
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"