diff bash @ 122:eacc854eae67

Export should be used since it inherited to subshell (eg. tmux). Also hasten exit instead of fi on the bottom of file.
author Edho Prima Arief <edho@myconan.net>
date Wed, 26 Oct 2011 15:14:48 +0700
parents 548cf46e9cb4
children
line wrap: on
line diff
--- a/bash	Thu Oct 20 11:04:50 2011 +0700
+++ b/bash	Wed Oct 26 15:14:48 2011 +0700
@@ -1,8 +1,10 @@
 #!/usr/bin/env bash
 
 if [ "${ECOS_BASH_LOADED}" != "yes" ]; then
-
-export ECOS_BASH_LOADED="yes"
+  ECOS_BASH_LOADED="yes"
+else
+  return
+fi
 
 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before"
 
@@ -88,5 +90,3 @@
 fi
 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after"
 
-fi
-