1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

Fix for ant targets with leading dash

As suggested in https://github.com/robbyrussell/oh-my-zsh/pull/3329#issuecomment-72062236
This commit is contained in:
Chris Peterson 2015-02-09 12:43:51 -08:00
parent 013b2bffcf
commit 349493a0b8

View file

@ -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
} }