mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 22:21:14 -03: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user