diff options
| -rwxr-xr-x | gist | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -559,9 +559,9 @@ _goto_gist_by_index() { | |||
| 559 | # Specify --force to suppress confirmation | 559 | # Specify --force to suppress confirmation |
| 560 | _delete_gist() { | 560 | _delete_gist() { |
| 561 | if [[ ! $* =~ '--force' ]]; then | 561 | if [[ ! $* =~ '--force' ]]; then |
| 562 | read -r -p "Delete gists above? [y/N] " response | 562 | read -n1 -p "Delete gists above? [y/N] " response |
| 563 | response=${response,,} | 563 | response=${response,,} |
| 564 | [[ ! $response =~ ^(yes|y)$ ]] && return 0 | 564 | [[ ! $response =~ ^(y|Y)$ ]] && return 0 || echo |
| 565 | fi | 565 | fi |
| 566 | 566 | ||
| 567 | for i in "$@"; do | 567 | for i in "$@"; do |