diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 12:57:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-20 12:57:12 +1200 |
commit | 1975b9585977ff256548ea8b6ba24622c7947183 (patch) | |
tree | 37f5256bda79d2efc672aad0308673e8fdd1888a /bash/bashrc | |
parent | Remove unnecessary quoting in simple assignments (diff) | |
download | dotfiles-1975b9585977ff256548ea8b6ba24622c7947183.tar.gz dotfiles-1975b9585977ff256548ea8b6ba24622c7947183.zip |
Use better test for interactive shell
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 2 |
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 |