From 06c13633de20ddb7b1b407444103fdd3f75c6adb Mon Sep 17 00:00:00 2001 From: volpino Date: Mon, 10 Oct 2011 16:57:20 +0200 Subject: [PATCH] q/quit to quit from theme chooser --- tools/theme_chooser.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/theme_chooser.sh b/tools/theme_chooser.sh index 4d7047444..642a4b9a7 100755 --- a/tools/theme_chooser.sh +++ b/tools/theme_chooser.sh @@ -12,8 +12,10 @@ FAVLIST="${HOME}/.zsh_favlist" source $ZSH/oh-my-zsh.sh function noyes() { - read "a?$1 [y/N] " - if [[ $a == "N" || $a == "n" || $a = "" ]]; then + read "a?$1 [y/N/q] " + if [[ $a == "q" || $a == "quit" ]] then + exit 0 + elif [[ $a == "N" || $a == "n" || $a = "" ]]; then return 0 fi return 1