Skip to content

Commit

Permalink
moved completion function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfoster committed Feb 3, 2009
1 parent 5ad1d62 commit 4942f6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 0 additions & 5 deletions 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

8 changes: 7 additions & 1 deletion rc
Expand Up @@ -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.