Browse files

moved completion function.

  • Loading branch information...
1 parent 5ad1d62 commit 4942f6a5db10d760ed9ad0e4cb6e7a06d997afd1 @mattfoster mattfoster committed Feb 3, 2009
Showing with 7 additions and 6 deletions.
  1. +0 −5 07_completion
  2. +7 −1 rc
View
5 07_completion
@@ -1,9 +1,4 @@
# Files to ignore during completion
fignore=(DS_Store $fignore)
-_cheat() {
- compadd print -l ${(s. .)$(cheat sheets | tr -d ' ' | tr '\n' ' ' | sed -e 's/AllCheatSheets://')}
-}
-
-compdef _cheat cheat
View
8 rc
@@ -80,4 +80,10 @@ fi
# Needed for doc function in 03_help.
compdef _doc doc
# Set up completion for bundle function in 05_editor.
-compdef _bundle bundle
+compdef _bundle bundle
+
+_cheat() {
+ compadd print -l ${(s. .)$(cheat sheets | tr -d ' ' | tr '\n' ' ' | sed -e 's/AllCheatSheets://')}
+}
+
+compdef _cheat cheat

0 comments on commit 4942f6a

Please sign in to comment.