diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-06-14 14:08:10 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-06-14 14:12:29 -0700 |
commit | 4115a2f2d115d97d77f2bd81609c6756acbeab2e (patch) | |
tree | e00f50d047f3a0b6f0a410ab5573292bba326b3b /share/tools | |
parent | 767742c7e7ee53c8aa7950f928d551c63d69448f (diff) |
Tweak and add tests for abbr
1. When run with no arguments, make abbr do the equivalent
of `abbr --show`
2. Enable "implicit add", e.g. `abbr gco git checkout`
3. Teach `abbr --show` to not use quotes for simple cases
4. Teach abbr to output -- when the abbreviation has
leading dashes
Add some basic tests to abbr too.
Diffstat (limited to 'share/tools')
-rwxr-xr-x | share/tools/web_config/webconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index c122f587..359946ae 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -709,7 +709,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): return True def do_save_abbreviation(self, abbreviation): - out, err = run_fish_cmd('abbr --add \'%s %s\'' % (abbreviation['word'], abbreviation['phrase'])) + out, err = run_fish_cmd('abbr --add -- \'%s %s\'' % (abbreviation['word'], abbreviation['phrase'])) if err: return err else: |