From 7870b029ccf86ef2fed932ac7e2a0295c2b799de Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 6 Apr 2020 11:23:57 +0800 Subject: Refactor helper message for general use case --- gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gist b/gist index 996ad07..376cc64 100755 --- a/gist +++ b/gist @@ -4,6 +4,7 @@ # License: MIT # https://gist.github.com/typebrook/b0d2e7e67aa50298fdf8111ae7466b56 # +# -- # gist # Description: Manage your gists with git and Github API v3 # Usage: gist [command] [] @@ -693,7 +694,7 @@ _edit_gist() { # Print helper message usage() { - sed -E -n -e ' /^$/ q; 7,$ s/^# //p' "$0" + sed -E -n -e ' /^$/ q; 1,/^# --/ d; s/^# //p' "$0" } # Check remote urls of all repos match current protocol in configuration file -- cgit v1.2.3-70-g09d2