From 7274baf95de18ba55e50f6ee04aa95987323b3b9 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 5 Feb 2020 16:08:54 +0800 Subject: update --- scripts/gist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index 7d0589b..242334f 100755 --- a/scripts/gist +++ b/scripts/gist @@ -163,8 +163,8 @@ _show_list() { echo ' gist update' return 0 fi - [[ -z $1 ]] && filter='/^ *s/ d; /^$/ d' - [[ $1 == "s" ]] && filter='/^ *[^ s]/ d; /^$/ d' + [[ -z $1 ]] && local filter='/^ *s/ d; /^$/ d' + [[ $1 == "s" ]] && local filter='/^ *[^ s]/ d; /^$/ d' while read index link blob_code file_num extra author description; do [[ $1 == "s" ]] && local name=$author @@ -181,7 +181,7 @@ _show_list() { echo -e "$(printf "% 3s" $index)" $link $name $file_num $extra $(echo $description | cut -c -$(( 60 -$occupy -1 )) ) done < $INDEX \ | sed "$filter" - echo -e '\nrun "gist help" for more details' > /dev/tty + echo -e '\nrun "gist help" or "gist h" for more details' > /dev/tty } # support files -- cgit v1.2.3-70-g09d2