mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-11 09:50:42 +01:00
Fixed cap plugin
This commit is contained in:
@@ -11,11 +11,10 @@ function _cap () {
|
|||||||
if [ -f config/deploy.rb ]; then
|
if [ -f config/deploy.rb ]; then
|
||||||
if _cap_does_task_list_need_generating; then
|
if _cap_does_task_list_need_generating; then
|
||||||
echo "\nGenerating .cap_tasks~..." > /dev/stderr
|
echo "\nGenerating .cap_tasks~..." > /dev/stderr
|
||||||
cap show_tasks -q | cut -d " " -f 1 | sed -e '/^ *$/D' -e '1,2D'
|
cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~
|
||||||
> .cap_tasks~
|
|
||||||
fi
|
fi
|
||||||
compadd `cat .cap_tasks~`
|
compadd `cat .cap_tasks~`
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
compctl -K _cap cap
|
compdef _cap cap
|
||||||
|
|||||||
Reference in New Issue
Block a user