From 3aed54b8c15dcfaf789984e92bc52411e9fa38f5 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 29 Aug 2012 18:23:01 +0900 Subject: [PATCH] update detecting interactive run --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index e0cb043..6b3dc6e 100755 --- a/bashrc +++ b/bashrc @@ -1,7 +1,7 @@ #!/bin/bash # If not running interactively, don't do anything -[ -z "$PS1" ] && return +[[ $- != *i* ]] && return ########################################## null(){