abbr completions: Describe abbreviations with what they abbreviate

i.e. "abbr -e <TAB>" will list
	 am (alsamixer)
This commit is contained in:
Fabian Homborg 2015-08-06 20:15:36 +02:00
parent 938da3039d
commit db5c02fbfc

View file

@ -1,5 +1,5 @@
complete -c abbr -f -s a -l add -d 'Add abbreviation'
complete -c abbr -s e -l erase -d 'Erase abbreviation' -xa '(abbr -l)'
complete -c abbr -s e -l erase -d 'Erase abbreviation' -xa '(abbr -s | cut -d" " -f 2- | sed -e "s/ / /")'
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'