mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
q/quit to quit from theme chooser
This commit is contained in:
parent
e5b9f0043a
commit
06c13633de
1 changed files with 4 additions and 2 deletions
|
|
@ -12,8 +12,10 @@ FAVLIST="${HOME}/.zsh_favlist"
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
function noyes() {
|
function noyes() {
|
||||||
read "a?$1 [y/N] "
|
read "a?$1 [y/N/q] "
|
||||||
if [[ $a == "N" || $a == "n" || $a = "" ]]; then
|
if [[ $a == "q" || $a == "quit" ]] then
|
||||||
|
exit 0
|
||||||
|
elif [[ $a == "N" || $a == "n" || $a = "" ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue