Skip to content

Commit

Permalink
Merge pull request rbenv#163 from richoH/features/completion_only_in_…
Browse files Browse the repository at this point in the history
…interactive_shells

Only run compctl if it's an interactive shell
  • Loading branch information
sstephenson committed Dec 24, 2011
2 parents efe600f + 65f0be0 commit c472116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions completions/rbenv.zsh
@@ -1,3 +1,7 @@
if [[ ! -o interactive ]]; then
return
fi

compctl -K _rbenv rbenv

_rbenv() {
Expand Down

0 comments on commit c472116

Please sign in to comment.