summaryrefslogtreecommitdiff
path: root/bash/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 3d0e6bd..a8153ac 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -1,3 +1,6 @@
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
# Prompt
if [[ -n $SSH_CLIENT ]]; then
PS1=$'\e[0;31m[\h]\e[0m \w $ '