From fff83792dd79c45eec033ae9dc1d9fd374e6bb7c Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 18 Apr 2014 16:16:18 +0200 Subject: [PATCH] Only call keychain(1) when shell is interactive --- sys/bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/bashrc b/sys/bashrc index 911327f..e3a45dc 100644 --- a/sys/bashrc +++ b/sys/bashrc @@ -9,13 +9,13 @@ BASHRCREAD="true" [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile +# Interactive shell? +[ "$PS1" ] || return + # Initialize keychain(1) ssh-agent and gpg-agent helper type keychain >/dev/null 2>&1 \ && eval `keychain --agents ssh --eval --quick --quiet` -# Interactive shell? -[ "$PS1" ] || return - # Common command aliases (1/2) alias ".."="cd .." alias "ls"="ls -F" -- 2.39.2