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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user