abbr: improve error handling when --erase called with no args

This commit is contained in:
Jason 2021-02-20 00:20:00 +09:00 committed by ridiculousfish
parent 9db51e7156
commit 1f546ac1d0

View File

@ -39,6 +39,7 @@ function abbr --description "Manage abbreviations"
__fish_abbr_add $argv
return
else if set -q _flag_erase[1]
set -q argv[1]; or return 1
__fish_abbr_erase $argv
return
else if set -q _flag_rename[1]