From ff2d06ae5f5816bb92f32e4e58a46700ad89a485 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 18 Feb 2012 00:59:59 -0600 Subject: [PATCH] .bashrc: short-circuit for non-interactive sessions --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index 71fe0a2..a3dbb15 100644 --- a/.bashrc +++ b/.bashrc @@ -3,6 +3,9 @@ # A basically sane bash environment. # Tony Duckles (based on http://github.com/rtomayko/dotfiles) +# short-circuit for non-interactive sessions +[ -z "$PS1" ] && return + # the basics : ${HOME=~} : ${LOGNAME=$(id -un)} -- 2.45.2