From d0e23060bfb53987387c88cc89b7ec18a570a801 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 10 Apr 2020 10:33:01 +0800 Subject: Improve 'gist help' with proper pattern --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index ad4f19d..241bf43 100755 --- a/gist +++ b/gist @@ -698,7 +698,7 @@ _edit_gist() { # Print helper message usage() { - sed -E -n -e ' /^$/ q; 1,/^# --/ d; 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