Permalink
Browse files

Bail on completion init if we're not an interactive shell

Based on the approach by @imajes
  • Loading branch information...
1 parent adf9c97 commit 65f0be0c20bbfae55d55263568cc7b6e3c672cbe @richo richo committed Dec 10, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 completions/rbenv.zsh
@@ -1,3 +1,7 @@
+if [[ ! -o interactive ]]; then
+ return
+fi
+
compctl -K _rbenv rbenv
_rbenv() {

0 comments on commit 65f0be0

Please sign in to comment.