aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-06-14 14:08:10 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-06-14 14:12:29 -0700
commit4115a2f2d115d97d77f2bd81609c6756acbeab2e (patch)
treee00f50d047f3a0b6f0a410ab5573292bba326b3b /share/tools
parent767742c7e7ee53c8aa7950f928d551c63d69448f (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-xshare/tools/web_config/webconfig.py2
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: