aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-08-06 20:15:36 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-08-06 20:15:36 +0200
commitdb5c02fbfc1b0310cce506a60f2c13413d35f00c (patch)
tree686d9346bf18ce4141005c6fcdfc19b0f6ee3107
parent938da3039d58b441e8938eaed64a24f294010125 (diff)
abbr completions: Describe abbreviations with what they abbreviate
i.e. "abbr -e <TAB>" will list am (alsamixer)
-rw-r--r--share/completions/abbr.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/abbr.fish b/share/completions/abbr.fish
index 3dcac341..3ce166fc 100644
--- a/share/completions/abbr.fish
+++ b/share/completions/abbr.fish
@@ -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'