diff --git a/fish/functions/confirm.fish b/fish/functions/confirm.fish index 4e8945e..fd48310 100644 --- a/fish/functions/confirm.fish +++ b/fish/functions/confirm.fish @@ -1,11 +1,11 @@ function confirm --description "Ask for user confirmation" --argument-names prompt while true - read --local --prompt-str="$prompt [y/N] " confirmed + read --local --prompt-str="$prompt [Y/n] " confirmed switch $confirmed - case Y y + case '' Y y return 0 - case '' N n + case N n return 1 end end