diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-05-22 09:48:39 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-05-22 09:48:39 +0800 |
commit | c0cf25cf0b28969dd9ef821f7952f42783ed6720 (patch) | |
tree | b5ea6ede9aab35c5cfa174115f265e903e66b0dc /share | |
parent | edf6a951ee3c84c9b24cd285383f7dac764edbb7 (diff) |
abbr: rename --remove to --erase
for consistency with other fish commands
Closes #2071.
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/abbr.fish | 2 | ||||
-rw-r--r-- | share/functions/abbr.fish | 6 | ||||
-rwxr-xr-x | share/tools/web_config/webconfig.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/share/completions/abbr.fish b/share/completions/abbr.fish index 6671ecd6..3dcac341 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 r -l remove -d 'Remove abbreviation' -xa '(abbr -l)' +complete -c abbr -s e -l erase -d 'Erase abbreviation' -xa '(abbr -l)' 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' diff --git a/share/functions/abbr.fish b/share/functions/abbr.fish index 7669b8fd..dd67b898 100644 --- a/share/functions/abbr.fish +++ b/share/functions/abbr.fish @@ -26,8 +26,8 @@ function abbr --description "Manage abbreviations" case '-a' '--add' set new_mode add set needs_arg coalesce - case '-r' '--remove' - set new_mode remove + case '-e' '--erase' + set new_mode erase set needs_arg single case '-l' '--list' set new_mode list @@ -91,7 +91,7 @@ function abbr --description "Manage abbreviations" set fish_user_abbreviations $fish_user_abbreviations $mode_arg return 0 - case 'remove' + case 'erase' set -l key __fish_abbr_parse_entry $mode_arg key if set -l idx (__fish_abbr_get_by_key $key) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 5438a43e..d65c86f8 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -702,7 +702,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): return result def do_remove_abbreviation(self, abbreviation): - out, err = run_fish_cmd('abbr -r %s' % abbreviation['word']) + out, err = run_fish_cmd('abbr -e %s' % abbreviation['word']) if out or err: return err else: |