[Bps-public-commit] SD branch, master, updated. 0.73-35-gac0f501

Kevin Falcone falcone at bestpractical.com
Wed Jan 6 21:26:37 EST 2010


The branch, master has been updated
       via  ac0f5019a971e18fab04b3b190e357af097b4752 (commit)
      from  734062f1a8daafbefe9452fabfca39f8fde99e0c (commit)

Summary of changes:
 etc/sd.bash |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 etc/sd.bash

- Log -----------------------------------------------------------------
commit ac0f5019a971e18fab04b3b190e357af097b4752
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Jan 6 21:26:33 2010 -0500

    add some sd specific bash completion rules

diff --git a/etc/sd.bash b/etc/sd.bash
new file mode 100644
index 0000000..186e4c3
--- /dev/null
+++ b/etc/sd.bash
@@ -0,0 +1,13 @@
+# add this to your bash_completion.d directory
+
+# handle the multi-word git sd command specially
+function _gitsd_() { 
+    _prophet_ "git sd" 
+}
+function _prophet_()
+{
+    COMPREPLY=($($1 _gencomp ${COMP_WORDS[COMP_CWORD]}))
+}
+
+complete -F _prophet_ sd
+complete -F _gitsd_ git sd

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



More information about the Bps-public-commit mailing list