mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Fix completions for abbr --erase
This commit is contained in:
parent
4747bdd7e7
commit
dae4faa512
@ -1,7 +1,7 @@
|
||||
complete -c abbr -f -s a -l add -d 'Add abbreviation'
|
||||
# Abbr keys can't contain spaces, so we can safely replace the first space with a tab
|
||||
# `abbr -s` won't work here because that already escapes
|
||||
complete -c abbr -s e -l erase -d 'Erase abbreviation' -xa '(string replace " " \t -- $fish_user_abbreviations)'
|
||||
complete -c abbr -s e -l erase -d 'Erase abbreviation' -xa '(abbr --list)'
|
||||
complete -c abbr -f -s s -l show -d 'Print all abbreviations'
|
||||
complete -c abbr -f -s l -l list -d 'Print all abbreviation names'
|
||||
complete -c abbr -f -s h -l help -d 'Help'
|
||||
|
Loading…
x
Reference in New Issue
Block a user