From 65f0be0c20bbfae55d55263568cc7b6e3c672cbe Mon Sep 17 00:00:00 2001 From: richo Date: Sat, 10 Dec 2011 14:17:44 +1100 Subject: [PATCH] Bail on completion init if we're not an interactive shell Based on the approach by @imajes --- completions/rbenv.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/completions/rbenv.zsh b/completions/rbenv.zsh index f1a41ad9..4739ac10 100644 --- a/completions/rbenv.zsh +++ b/completions/rbenv.zsh @@ -1,3 +1,7 @@ +if [[ ! -o interactive ]]; then + return +fi + compctl -K _rbenv rbenv _rbenv() {