From 525f9b8e7bd7cb297bdc0b8862bde22769e8e3e2 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 20 Aug 2012 13:23:30 +0900 Subject: [PATCH] do nothing if not running interactively --- bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bashrc b/bashrc index 9ae647f..cc5422b 100755 --- a/bashrc +++ b/bashrc @@ -1,5 +1,8 @@ #!/bin/bash +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + ########################## # system type