aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-02-17 18:55:16 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-02-17 18:55:16 +0100
commit73f0f5039dcc9e04f6feeb8d1d6d2be639202e01 (patch)
treef3a7808817694845ccdf3f4a62535bc00e4a7134 /.bashrc
parent088cddf68b8bc43ff6d79165e0bb2acc490685a9 (diff)
Don't do modifications unless bash is ran interactively
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 5 insertions, 0 deletions
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