Added class and os alternates

This commit is contained in:
h45h74x committed 2020-05-06 22:06:16 +02:00
1 parent 5a5286b38c
commit 80a58d4669
793 files changed
+63028 -295

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
_ant_does_target_list_need_generating () {
[ ! -f .ant_targets ] && return 0;
[ build.xml -nt .ant_targets ] && return 0;
return 1;
}
_ant () {
if [ -f build.xml ]; then
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`
fi
}
compdef _ant ant