diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-07-03 17:47:27 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-07-03 18:40:25 +0800 |
commit | a72afce2571ae0ebcdf00e4c76e62abdab5bb272 (patch) | |
tree | e5ed3f624c2e816778fe361a054affe0ce79956e | |
parent | e2e5a1e9e6838af48ab4be87c7f0efd4eb30553a (diff) |
Add marker of current group
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,6 @@ | |||
49 | # Since now a gist is a local cloned repo | 49 | # Since now a gist is a local cloned repo |
50 | # It is your business to do git commit and git push | 50 | # It is your business to do git commit and git push |
51 | 51 | ||
52 | # TODO Add mark when user is in repo | ||
53 | # TODO change gist from public to private or reverse versa | 52 | # TODO change gist from public to private or reverse versa |
54 | # TODO feature to exclude tag-value or grep-string | 53 | # TODO feature to exclude tag-value or grep-string |
55 | # TODO Save HEADER with wget and httpie | 54 | # TODO Save HEADER with wget and httpie |
@@ -328,6 +327,7 @@ _print_records() { | |||
328 | fi | 327 | fi |
329 | 328 | ||
330 | local extra="$(printf "%-4s" "$file_num $comment_num")" | 329 | local extra="$(printf "%-4s" "$file_num $comment_num")" |
330 | [[ $(pwd) == $folder/$gist_id ]] && extra="$(tput setaf 13)>>> $(tput sgr0)" | ||
331 | local status=''; status=$(_check_repo_status "${folder}/${gist_id}" "$blob_code") | 331 | local status=''; status=$(_check_repo_status "${folder}/${gist_id}" "$blob_code") |
332 | [[ $index =~ ^s ]] && description="$(printf "%-12s" [${author}]) ${description}" | 332 | [[ $index =~ ^s ]] && description="$(printf "%-12s" [${author}]) ${description}" |
333 | 333 | ||