2014-10-05 12:17:46 +08:00
|
|
|
complete -c abbr -f -s a -l add -d 'Add abbreviation'
|
2016-07-26 21:23:02 +08:00
|
|
|
# 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
|
2019-09-28 04:01:38 +08:00
|
|
|
complete -c abbr -s e -l erase -d 'Erase abbreviation' -xa '(abbr --list)'
|
2014-10-05 12:17:46 +08:00
|
|
|
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'
|
2020-03-10 02:36:12 +08:00
|
|
|
complete -c abbr -f -s h -l help -d Help
|