1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 20:41:44 +00:00

Cleaned up the plugins.

This commit is contained in:
Sorin Ionescu
2011-08-30 23:16:15 -04:00
parent 422307c3ca
commit 90e7debc30
66 changed files with 902 additions and 1774 deletions

View File

@ -1,5 +1,6 @@
_phing_does_target_list_need_generating () {
if [ ! -f .phing_targets ]; then return 0;
function _phing_does_target_list_need_generating() {
if [[ ! -f .phing_targets ]]; then
return 0
else
accurate=$(stat -f%m .phing_targets)
changed=$(stat -f%m build.xml)
@ -7,8 +8,8 @@ _phing_does_target_list_need_generating () {
fi
}
_phing () {
if [ -f build.xml ]; then
function _phing() {
if [[ -f build.xml ]]; then
if _phing_does_target_list_need_generating; then
phing -l |grep -v ":" |grep -v "^$"|grep -v "\-" > .phing_targets
fi
@ -17,3 +18,4 @@ _phing () {
}
compdef _phing phing