From ae4ab08dcd7de8969890b21834c34fe97dc06d00 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sat, 28 Mar 2020 00:30:48 +0800 Subject: Suppress hint when STDIN is not empty --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index cf09f6f..b1bfda9 100755 --- a/gist +++ b/gist @@ -318,7 +318,7 @@ _show_list() { local pinned_tags=( $pin ) echo echo Pinned tags: "${pinned_tags[*]/#/#} " - elif [[ $hint == 'true' ]]; then + elif [[ -z $INPUT && $hint == 'true' ]]; then echo echo 'Run "gist fetch" to keep gists up to date, or "gist help" for more details' > /dev/tty fi -- cgit v1.2.3-70-g09d2