From ebdb1b4a013cef757d02dc67b310dbe504014892 Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 27 Jan 2020 21:34:46 +0800 Subject: update --- scripts/gist | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 72601ae..132a185 100755 --- a/scripts/gist +++ b/scripts/gist @@ -112,6 +112,8 @@ _show_list() { # if repo is not yet cloned, show green message "Not cloned yet" [[ ! -d $repo ]] && extra="\e[32m[Not cloned yet]\e[0m" + + cd $repo # if there are some changes in git index or working directory, show blue message "working" [[ -n $(git status --short) ]] 2>/dev/null && extra="\e[36m[working]\e[0m" # if there is a commit not yet push, show red message "ahead" -- cgit v1.2.3-70-g09d2