From abae0fc598e9d8f008d0ced1594303baece3c0af Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 16 Jan 2020 13:18:48 +0800 Subject: update --- scripts/gist | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index bd37b1e..b3b9e85 100755 --- a/scripts/gist +++ b/scripts/gist @@ -59,7 +59,13 @@ index=$folder/index # Show the list of gist, but not updated time _show_list() { - cat $index | cut -d' ' -f1-2,4- + cat $index |\ + while read line_num link file_url_array file_num extra description; do + repo=$folder/$(echo $link | sed 's#.*/##') + # if there is something need to commit + cd $repo && [[ -n $(git status --short) ]] && extra="\e[36m[working]\e[0m" + echo -e $line_num $link $file_num $extra $description + done } # get the list of gists -- cgit v1.2.3-70-g09d2