diff options
-rwxr-xr-x | gist | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -422,10 +422,10 @@ _repo_url() { | |||
422 | _gist_id() { | 422 | _gist_id() { |
423 | GIST_ID=$( (grep -hs '' $INDEX || true) | sed -n -e "/^$1 / p" | cut -d' ' -f2 | sed -E -e 's#.*/##') | 423 | GIST_ID=$( (grep -hs '' $INDEX || true) | sed -n -e "/^$1 / p" | cut -d' ' -f2 | sed -E -e 's#.*/##') |
424 | if [[ -z $GIST_ID ]]; then | 424 | if [[ -z $GIST_ID ]]; then |
425 | echo -e "Not a valid index: \e[31m$1\e[0m" | 425 | echo -e "$(hint=false _show_list | sed -Ee 's/^( *[0-9a-z]+)/\\033[5m\1\\033[0m/')" |
426 | echo 'Use the index in the first column instead (like 1 or s1):' | ||
427 | echo | 426 | echo |
428 | hint=false _show_list | 427 | echo -e "Not a valid index: \e[33m$1\e[0m" |
428 | echo 'Use the indices blinking instead (like 1 or s1)' | ||
429 | return 1 | 429 | return 1 |
430 | fi | 430 | fi |
431 | } | 431 | } |