From 73f0f5039dcc9e04f6feeb8d1d6d2be639202e01 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 17 Feb 2020 18:55:16 +0100 Subject: Don't do modifications unless bash is ran interactively --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index c5fbadd..064da17 100644 --- a/.bashrc +++ b/.bashrc @@ -1,3 +1,8 @@ +if [[ $- != *i* ]] ; then + # Shell is non-interactive, don't do anything. + return +fi + [ $DEBUG_DOTFILES ] && echo "Loading .bashrc" # Load initialization -- cgit v1.1