aboutsummaryrefslogtreecommitdiffstats
path: root/src/_httpie
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2013-11-06 16:40:39 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2013-11-06 16:54:15 +0100
commit512b6357e12c4891a05d22372984696b1f0718cc (patch)
tree76c96110631dec86dc2f4f0bb3c7bf7358f5a2a7 /src/_httpie
parent_httpie: use NORMARG for positioning (diff)
downloadzsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.tar
zsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.tar.gz
zsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.tar.bz2
zsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.tar.lz
zsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.tar.xz
zsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.tar.zst
zsh-completions-512b6357e12c4891a05d22372984696b1f0718cc.zip
_httpie: fix for -pH problem
Diffstat (limited to 'src/_httpie')
-rw-r--r--src/_httpie3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/_httpie b/src/_httpie
index 9eb49f0..dce6100 100644
--- a/src/_httpie
+++ b/src/_httpie
@@ -102,6 +102,9 @@ _httpie_printflags () {
local ret=1
+ # not sure why this is necessary, but it will complete "-pH" style without it
+ [[ $IPREFIX == "-p" ]] && IPREFIX+=" "
+
compset -P '(#b)([a-zA-Z]#)'
local -a flags