mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 15:19:11 +08:00
abbr: improve error handling when --erase called with no args
This commit is contained in:
parent
9db51e7156
commit
1f546ac1d0
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user