diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-02-17 18:55:16 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-02-17 18:55:16 +0100 |
commit | 73f0f5039dcc9e04f6feeb8d1d6d2be639202e01 (patch) | |
tree | f3a7808817694845ccdf3f4a62535bc00e4a7134 /.bashrc | |
parent | 088cddf68b8bc43ff6d79165e0bb2acc490685a9 (diff) |
Don't do modifications unless bash is ran interactively
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +if [[ $- != *i* ]] ; then + # Shell is non-interactive, don't do anything. + return +fi + [ $DEBUG_DOTFILES ] && echo "Loading .bashrc" # Load initialization |