changeset 44:1f1af28f36e9

[bash] Bashrc, c-style ifdef.
author Edho Prima Arief <me@myconan.net>
date Wed, 27 Apr 2011 21:15:16 +0700
parents b4965a1610f6
children 7e462da3caa0
files bash setup
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Tue Apr 26 13:03:31 2011 +0700
+++ b/bash	Wed Apr 27 21:15:16 2011 +0700
@@ -1,5 +1,8 @@
 #!/usr/bin/env bash
 
+[ -n "${echo_bash}" ] && return
+ecos_bash=y
+
 [ -f .bash.conf.before ] && . .bash.conf.before
 _has_rm_I=
 _has_gnu_ls=
--- a/setup	Tue Apr 26 13:03:31 2011 +0700
+++ b/setup	Wed Apr 27 21:15:16 2011 +0700
@@ -14,8 +14,9 @@
 
   #modify cshrc
   echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
-  #modify bash_profile
+  #modify bash_profile and bashrc
   echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bash_profile"
+  echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bashrc"
 }
 
 linker() {