From 085a18966d953efd2258a46acf9b6226d22441e6 Mon Sep 17 00:00:00 2001 From: Reza Date: Sat, 13 Nov 2010 09:08:24 -0800 Subject: [PATCH 1/3] Fixed cap plugin --- plugins/cap/cap.plugin.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/cap/cap.plugin.zsh b/plugins/cap/cap.plugin.zsh index a0fa21d00..a9db4381b 100644 --- a/plugins/cap/cap.plugin.zsh +++ b/plugins/cap/cap.plugin.zsh @@ -11,11 +11,10 @@ function _cap () { if [ -f config/deploy.rb ]; then if _cap_does_task_list_need_generating; then echo "\nGenerating .cap_tasks~..." > /dev/stderr - cap show_tasks -q | cut -d " " -f 1 | sed -e '/^ *$/D' -e '1,2D' -> .cap_tasks~ + cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~ fi compadd `cat .cap_tasks~` fi } -compctl -K _cap cap \ No newline at end of file +compdef _cap cap From 8ca334e12f0303d6aad2c6be6b0d947219dd9ae9 Mon Sep 17 00:00:00 2001 From: Tom Stuart Date: Tue, 2 Nov 2010 19:26:49 +0800 Subject: [PATCH 2/3] Fix lighthouse plugin error message --- plugins/lighthouse/lighthouse.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lighthouse/lighthouse.plugin.zsh b/plugins/lighthouse/lighthouse.plugin.zsh index 4eb06a997..7661c6add 100644 --- a/plugins/lighthouse/lighthouse.plugin.zsh +++ b/plugins/lighthouse/lighthouse.plugin.zsh @@ -4,7 +4,7 @@ # Example usage: http://screencast.com/t/ZDgwNDUwNT open_lighthouse_ticket () { if [ ! -f .lighthouse-url ]; then - echo "There is no .lighthouse file in the current directory..." + echo "There is no .lighthouse-url file in the current directory..." return 0; else lighthouse_url=$(cat .lighthouse-url); @@ -13,4 +13,4 @@ open_lighthouse_ticket () { fi } -alias lho='open_lighthouse_ticket' \ No newline at end of file +alias lho='open_lighthouse_ticket' From 7ceb9b7c7c7bd0dea5c0786f7a6474e44e993305 Mon Sep 17 00:00:00 2001 From: Reza Date: Fri, 31 Dec 2010 14:32:24 -0800 Subject: [PATCH 3/3] Added personal c plugin --- plugins/c/c.plugin.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/c/c.plugin.zsh diff --git a/plugins/c/c.plugin.zsh b/plugins/c/c.plugin.zsh new file mode 100644 index 000000000..13fa39072 --- /dev/null +++ b/plugins/c/c.plugin.zsh @@ -0,0 +1,10 @@ +function c() { + cd ~/Dev/$1; +} + +#compdef c +function _c () { + _files -W ~/Dev -/ +} + +compdef _c c