diff options
author | Aaron Gyes <me@aaron.gy> | 2016-04-08 10:46:51 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2016-04-08 10:49:29 +0800 |
commit | 36691df6fe4667645b71b550ce5eea90762ac23a (patch) | |
tree | ec2d420e797298da5fd83e4ee514f9643b231835 /share/completions/apm.fish | |
parent | 790c7f80c7d0fa1c97380885201eb50a2abcce02 (diff) |
Stringify many completions and functions, with --invert stringification.
I believe apm must have been buggy - example output that I found online
showed `tr` was mangling paths with spaces in it. Should be fixed.
Also, use dscl on OS X in __fish_complete_users.fish like
__fish_print_users.fish already does.
Diffstat (limited to 'share/completions/apm.fish')
-rw-r--r-- | share/completions/apm.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/completions/apm.fish b/share/completions/apm.fish index 6b80a1b8..f9bf2f97 100644 --- a/share/completions/apm.fish +++ b/share/completions/apm.fish @@ -61,7 +61,7 @@ end # Lists all apm config items function __fish_apm_config_items - apm config list | grep -v '^;\|^$' | tr "\ =\ " "\t" + apm config list | string match -r -v "^\s*;|^\s*\$" | string replace "\w*=\w*" \t end # Lists all installed atom packages @@ -69,7 +69,7 @@ function __fish_apm_list_packages apm list -b end -if apm -h ^| grep -q "Atom Package Manager" +if apm -h ^| string match -q "Atom Package Manager*" # Completions for Atom Package Manager ################## |