mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
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:
parent
f3560b8e62
commit
9223b643b6
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue