summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorChris Peterson <cpeterson@financialforce.com>2015-02-09 12:43:51 -0800
committerChris Peterson <cpeterson@financialforce.com>2015-02-09 13:12:02 -0800
commit349493a0b81ae98117ea1a115a92ba509476298f (patch)
tree70a88fff62fb4d4166a4d3a1e294a8c415cdd3d2 /plugins
parent013b2bffcf11d0bc3ff29c96a8e6846166639c2c (diff)
downloadzsh-349493a0b81ae98117ea1a115a92ba509476298f.tar.gz
zsh-349493a0b81ae98117ea1a115a92ba509476298f.tar.bz2
zsh-349493a0b81ae98117ea1a115a92ba509476298f.zip
Fix for ant targets with leading dash
As suggested in https://github.com/robbyrussell/oh-my-zsh/pull/3329#issuecomment-72062236
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ant/ant.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ant/ant.plugin.zsh b/plugins/ant/ant.plugin.zsh
index a945967d5..0b738c94f 100644
--- a/plugins/ant/ant.plugin.zsh
+++ b/plugins/ant/ant.plugin.zsh
@@ -9,7 +9,7 @@ _ant () {
if _ant_does_target_list_need_generating; then
ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets
fi
- compadd `cat .ant_targets`
+ compadd -- `cat .ant_targets`
fi
}