aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist6
1 files changed, 3 insertions, 3 deletions
diff --git a/gist b/gist
index f3dd8a7..a593f27 100755
--- a/gist
+++ b/gist
@@ -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}