diff bash @ 117:548cf46e9cb4

Ensures no double loading using C-style variable test.
author Edho Prima Arief <edho@myconan.net>
date Thu, 20 Oct 2011 11:04:50 +0700
parents abc5c2edb967
children eacc854eae67
line wrap: on
line diff
--- a/bash	Wed Oct 19 06:51:43 2011 +0000
+++ b/bash	Thu Oct 20 11:04:50 2011 +0700
@@ -1,5 +1,9 @@
 #!/usr/bin/env bash
 
+if [ "${ECOS_BASH_LOADED}" != "yes" ]; then
+
+export ECOS_BASH_LOADED="yes"
+
 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before"
 
 _org_path="${PATH}"
@@ -83,3 +87,6 @@
   export EDITOR=vim
 fi
 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after"
+
+fi
+