aboutsummaryrefslogtreecommitdiffhomepage
path: root/init
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-01-14 11:59:37 +1000
committerGravatar axel <axel@liljencrantz.se>2006-01-14 11:59:37 +1000
commit11273a7be044239d58d0b7124bdbcb373fe01163 (patch)
tree7cfacc16d45927650cf152f2299d6e8ece1792cc /init
parent1562b8148d344a94335032e0e5d6402c9a2dd7e3 (diff)
Various corrections for advanced tab completions. Should make the --export
darcs-hash:20060114015937-ac50b-c085db7526eae4aa4138ca86304e725d7faebec4.gz
Diffstat (limited to 'init')
-rw-r--r--init/completions/gpg.fish9
-rw-r--r--init/fish_complete.fish.in2
2 files changed, 5 insertions, 6 deletions
diff --git a/init/completions/gpg.fish b/init/completions/gpg.fish
index 16a21d3a..67043536 100644
--- a/init/completions/gpg.fish
+++ b/init/completions/gpg.fish
@@ -6,14 +6,13 @@
# written to, to make gpg use a different locale than the one
# specified in the environment or to specify an alternative home
# directory.
-#
+
# Switches related to debugging, switches whose use is not
# recommended, switches whose behaviour is as of yet undefined,
# switches for experimental features, switches to make gpg compliant
-# to legacy pgp-versions and deprecated or obsolete switches have all
-# been removed. The remaining list of completions is still quite
-# impressive.
-#
+# to legacy pgp-versions, dos-specific switches and deprecated or
+# obsolete switches have all been removed. The remaining list of
+# completions is still quite impressive.
#
# Various functions used for dynamic completions
diff --git a/init/fish_complete.fish.in b/init/fish_complete.fish.in
index 96b73b78..f893186a 100644
--- a/init/fish_complete.fish.in
+++ b/init/fish_complete.fish.in
@@ -233,7 +233,7 @@ end
function __fish_append -d "Internal completion function for appending string to the commandline"
set separator $argv[1]
set -e argv[1]
- set str (commandline -tc| sed -ne "s/\(.*$separator\)[^$separator]*/\1/p")
+ set str (commandline -tc| sed -ne "s/\(.*$separator\)[^$separator]*/\1/p"|sed -e "s/--.*=//")
printf "%s\n" "$str"$argv "$str"(printf "%s\n" $argv|sed -e "s/\(\t\|\$\)/,\1/")
end