[Bps-public-commit] Prophet branch, master, updated. 0.73-33-g4576c8d
sartak at bestpractical.com
sartak at bestpractical.com
Wed Jan 6 18:33:13 EST 2010
The branch, master has been updated
via 4576c8d6926237a0a4d1a69537ee94eeae365b2e (commit)
from 0a357b905ac7e02213f08b25454bab20aaa6a24e (commit)
Summary of changes:
doc/tab-completion | 4 ++++
etc/prophet.zsh | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
create mode 100644 doc/tab-completion
create mode 100644 etc/prophet.zsh
- Log -----------------------------------------------------------------
commit 4576c8d6926237a0a4d1a69537ee94eeae365b2e
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Jan 6 18:32:57 2010 -0500
Add zsh tab completion
diff --git a/doc/tab-completion b/doc/tab-completion
new file mode 100644
index 0000000..5a3f48e
--- /dev/null
+++ b/doc/tab-completion
@@ -0,0 +1,4 @@
+zsh:
+ sudo ln -vis `pwd`/etc/prophet.zsh /usr/share/zsh/site-functions/_prophet
+ (tested on Mac OS X 10.6)
+
diff --git a/etc/prophet.zsh b/etc/prophet.zsh
new file mode 100644
index 0000000..ecd17a9
--- /dev/null
+++ b/etc/prophet.zsh
@@ -0,0 +1,6 @@
+#compdef prophet sd
+
+typeset -a prophet_completions
+prophet_completions=($($words[1] _gencomp $words[2,-1]))
+compadd $prophet_completions
+
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list