From b0d4c6c869b47387be3ca632bbaca03224eda622 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 21 Nov 2013 22:20:52 +0900 Subject: [PATCH] fix exiting shrc --- shrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shrc b/shrc index 4adbd47..1123ff3 100755 --- a/shrc +++ b/shrc @@ -340,8 +340,10 @@ then if test "$1" = setup then __mysetup + exit 0 fi - exit 0 + # if this file is sourced return, if executed directly exit + return 2>/dev/null || exit fi ######################