diff options
author | typebrook <typebrook@gmail.com> | 2020-02-05 16:08:54 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-05 16:08:54 +0800 |
commit | 7274baf95de18ba55e50f6ee04aa95987323b3b9 (patch) | |
tree | 32624c048e8fbc3c07df9f23b198e6d75f2d6f4c | |
parent | 9a96f2ecc00334c66f93cfc3daaad0e369e5a450 (diff) |
update
-rwxr-xr-x | scripts/gist | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gist b/scripts/gist index 7d0589b..242334f 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -163,8 +163,8 @@ _show_list() { | |||
163 | echo ' gist update' | 163 | echo ' gist update' |
164 | return 0 | 164 | return 0 |
165 | fi | 165 | fi |
166 | [[ -z $1 ]] && filter='/^ *s/ d; /^$/ d' | 166 | [[ -z $1 ]] && local filter='/^ *s/ d; /^$/ d' |
167 | [[ $1 == "s" ]] && filter='/^ *[^ s]/ d; /^$/ d' | 167 | [[ $1 == "s" ]] && local filter='/^ *[^ s]/ d; /^$/ d' |
168 | 168 | ||
169 | while read index link blob_code file_num extra author description; do | 169 | while read index link blob_code file_num extra author description; do |
170 | [[ $1 == "s" ]] && local name=$author | 170 | [[ $1 == "s" ]] && local name=$author |
@@ -181,7 +181,7 @@ _show_list() { | |||
181 | echo -e "$(printf "% 3s" $index)" $link $name $file_num $extra $(echo $description | cut -c -$(( 60 -$occupy -1 )) ) | 181 | echo -e "$(printf "% 3s" $index)" $link $name $file_num $extra $(echo $description | cut -c -$(( 60 -$occupy -1 )) ) |
182 | done < $INDEX \ | 182 | done < $INDEX \ |
183 | | sed "$filter" | 183 | | sed "$filter" |
184 | echo -e '\nrun "gist help" for more details' > /dev/tty | 184 | echo -e '\nrun "gist help" or "gist h" for more details' > /dev/tty |
185 | } | 185 | } |
186 | 186 | ||
187 | # support files | 187 | # support files |