Commit 349493a0 authored by Chris Peterson's avatar Chris Peterson
Browse files

Fix for ant targets with leading dash

As suggested in https://github.com/robbyrussell/oh-my-zsh/pull/3329#issuecomment-72062236
parent 013b2bff
...@@ -9,7 +9,7 @@ _ant () { ...@@ -9,7 +9,7 @@ _ant () {
if _ant_does_target_list_need_generating; then if _ant_does_target_list_need_generating; then
ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets
fi fi
compadd `cat .ant_targets` compadd -- `cat .ant_targets`
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment