comparison setup @ 44:1f1af28f36e9

[bash] Bashrc, c-style ifdef.
author Edho Prima Arief <me@myconan.net>
date Wed, 27 Apr 2011 21:15:16 +0700
parents 34818dfa7f36
children 65f98c2936c1
comparison
equal deleted inserted replaced
43:b4965a1610f6 44:1f1af28f36e9
12 #originally bin-ec. Renamed to .ecos.bin for sanity when listing home 12 #originally bin-ec. Renamed to .ecos.bin for sanity when listing home
13 linker "bin" ".ecos.bin" 13 linker "bin" ".ecos.bin"
14 14
15 #modify cshrc 15 #modify cshrc
16 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc" 16 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
17 #modify bash_profile 17 #modify bash_profile and bashrc
18 echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bash_profile" 18 echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bash_profile"
19 echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bashrc"
19 } 20 }
20 21
21 linker() { 22 linker() {
22 echo "Creating symlink: ${1} => ~/${2}" 23 echo "Creating symlink: ${1} => ~/${2}"
23 ln -fs "${PWD}/${1}" "${HOME}/${2}" 24 ln -fs "${PWD}/${1}" "${HOME}/${2}"