diff --git a/modules/git/git-v2.nu b/modules/git/git-v2.nu index b49e4a5..000917c 100644 --- a/modules/git/git-v2.nu +++ b/modules/git/git-v2.nu @@ -1,10 +1,10 @@ def agree [prompt] { let prompt = if ($prompt | str ends-with '!') { - $'(ansi red)($prompt)(ansi reset) ' + $'(ansi red)($prompt)(ansi reset)' } else { - $'($prompt) ' + $'($prompt)' } - (input $prompt | str downcase) in ['y', 'yes', 'ok', 't', 'true', '1'] + ([yes no] | input list $prompt) in [yes] } # git status and stash