changeset 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 9b91e702c19c
children 131e1ddf8d43 eacc854eae67
files bash
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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
+