mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Cleaned up the plugins.
This commit is contained in:
parent
422307c3ca
commit
90e7debc30
66 changed files with 902 additions and 1774 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue