Use --remove instead of -e when erasing abbreviations from fish_config

Updates fish_config to use the correct argument to abbr
This commit is contained in:
ridiculousfish 2015-06-13 22:56:01 -07:00
parent f3560b8e62
commit 9223b643b6

View file

@ -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: