aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 12:57:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 12:57:12 +1200
commit1975b9585977ff256548ea8b6ba24622c7947183 (patch)
tree37f5256bda79d2efc672aad0308673e8fdd1888a /bash/bashrc
parentRemove unnecessary quoting in simple assignments (diff)
downloaddotfiles-1975b9585977ff256548ea8b6ba24622c7947183.tar.gz
dotfiles-1975b9585977ff256548ea8b6ba24622c7947183.zip
Use better test for interactive shell
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index c270fdfd..588d0258 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -1,5 +1,5 @@
# Don't do anything if not running interactively
-if [[ -z $PS1 ]]; then
+if [[ $- != *i* ]]; then
return
fi