chiark / gitweb /
bash_completion: Completion for rootliness.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 24 Jan 2007 13:10:38 +0000 (13:10 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 24 Jan 2007 13:10:38 +0000 (13:10 +0000)
bash_completion [new file with mode: 0644]
setup

diff --git a/bash_completion b/bash_completion
new file mode 100644 (file)
index 0000000..1634e81
--- /dev/null
@@ -0,0 +1,4 @@
+### -*-sh-*-
+
+[ "$(type -t _command)" = "function" ] &&
+complete -F _command r rootly
diff --git a/setup b/setup
index 2be90653f4a2998ebde7563c6e47363fcd894b2c..cea3d94348ad30340d96f1c32a05c0b37a603a55 100755 (executable)
--- a/setup
+++ b/setup
@@ -142,7 +142,7 @@ fi
 
 ### Symlink the various dotfiles into place
 dotfiles=" 
-  bash_profile bash_logout bashrc inputrc
+  bash_profile bash_logout bashrc inputrc bash_completion
   emacs emacs-calc 
   vm mailrc signature
   gitconfig