From 5c6143d8e9a7e0090b402716cccdb5e2c849dbc3 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 13 Jun 2015 22:56:01 -0700 Subject: [PATCH] Use --remove instead of -e when erasing abbreviations from fish_config Updates fish_config to use the correct argument to abbr --- share/tools/web_config/webconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index d65c86f89..c122f587b 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -702,14 +702,14 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): return result def do_remove_abbreviation(self, abbreviation): - out, err = run_fish_cmd('abbr -e %s' % abbreviation['word']) + out, err = run_fish_cmd('abbr --remove %s' % abbreviation['word']) if out or err: return err else: return True def do_save_abbreviation(self, abbreviation): - out, err = run_fish_cmd('abbr -a \'%s %s\'' % (abbreviation['word'], abbreviation['phrase'])) + out, err = run_fish_cmd('abbr --add \'%s %s\'' % (abbreviation['word'], abbreviation['phrase'])) if err: return err else: