From 354616f8a6e82189bc84e6fc06234426ed3482fc Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 22 Mar 2020 14:02:02 +0800 Subject: Fix format for showing author prevent author name concates file number if its length > 12 --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index b047368..378b1e6 100755 --- a/gist +++ b/gist @@ -292,7 +292,7 @@ _show_list() { local repo; repo=$folder/${url##*/} local extra; extra=$(_check_repo_status "$repo" "$blob_code") [[ -z $extra ]] && extra="$file_num $comment_num" - [[ $index =~ ^s ]] && extra=$(printf "%-12s" $author)${extra} + [[ $index =~ ^s ]] && extra=$(printf "%-10s " $author)${extra} local hashtags=$(_hashtags "$description") local description=$(sed -E -e 's/^\[(.+)\]/\\e[33m[\1]\\e[0m/' <<<"$description" | sed "s/ $hashtags$//") [[ $tag == 'true' ]] && url="$hashtags" && local width=45 && align=' ' -- cgit v1.2.3-70-g09d2