From a72afce2571ae0ebcdf00e4c76e62abdab5bb272 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 3 Jul 2020 17:47:27 +0800 Subject: Add marker of current group --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index 233b50d..95fc6da 100755 --- a/gist +++ b/gist @@ -49,7 +49,6 @@ # Since now a gist is a local cloned repo # It is your business to do git commit and git push -# TODO Add mark when user is in repo # TODO change gist from public to private or reverse versa # TODO feature to exclude tag-value or grep-string # TODO Save HEADER with wget and httpie @@ -328,6 +327,7 @@ _print_records() { fi local extra="$(printf "%-4s" "$file_num $comment_num")" + [[ $(pwd) == $folder/$gist_id ]] && extra="$(tput setaf 13)>>> $(tput sgr0)" local status=''; status=$(_check_repo_status "${folder}/${gist_id}" "$blob_code") [[ $index =~ ^s ]] && description="$(printf "%-12s" [${author}]) ${description}" -- cgit v1.2.3-70-g09d2