[Bps-public-commit] Prophet branch, master, updated. 0.73-34-g398bcda

Kevin Falcone falcone at bestpractical.com
Wed Jan 6 21:24:36 EST 2010


The branch, master has been updated
       via  398bcda5ae1a52d659965ddd10772e6e6919af8f (commit)
      from  4576c8d6926237a0a4d1a69537ee94eeae365b2e (commit)

Summary of changes:
 doc/tab-completion |    4 ++++
 etc/prophet.bash   |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
 create mode 100644 etc/prophet.bash

- Log -----------------------------------------------------------------
commit 398bcda5ae1a52d659965ddd10772e6e6919af8f
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Jan 6 21:24:19 2010 -0500

    sample tab completion for a prophet app

diff --git a/doc/tab-completion b/doc/tab-completion
index 5a3f48e..3964943 100644
--- a/doc/tab-completion
+++ b/doc/tab-completion
@@ -2,3 +2,7 @@ zsh:
     sudo ln -vis `pwd`/etc/prophet.zsh /usr/share/zsh/site-functions/_prophet
     (tested on Mac OS X 10.6)
 
+bash:
+    symlink etc/prophet.bash to your bash_completion.d directory, if you're using macports this 
+    will be /opt/local/etc/bash_completion.d
+    On a linux platform, this is likely to be /etc/bash_completion.d
diff --git a/etc/prophet.bash b/etc/prophet.bash
new file mode 100644
index 0000000..1d18361
--- /dev/null
+++ b/etc/prophet.bash
@@ -0,0 +1,6 @@
+function _prophet_()
+{
+    COMPREPLY=($($1 _gencomp ${COMP_WORDS[COMP_CWORD]}))
+}
+
+complete -F _prophet_ myprophetapp

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list