comparison setup @ 65:e6aa07cf62cc

Autoload for zsh
author Edho Prima Arief <me@myconan.net>
date Tue, 17 May 2011 13:29:53 -0400
parents 3cd3f31d8a82
children 54a82956bb11
comparison
equal deleted inserted replaced
64:3cd3f31d8a82 65:e6aa07cf62cc
17 #modify cshrc 17 #modify cshrc
18 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc" 18 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
19 #modify bash_profile and bashrc 19 #modify bash_profile and bashrc
20 echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bash_profile" 20 echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bash_profile"
21 echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bashrc" 21 echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bashrc"
22 #modify zshrc
23 echo '[ -r "${HOME}/.ecos_zsh" ] && . "${HOME}/.ecos_zsh" #ECCORE_ZSH' >> "${HOME}/.zshrc"
22 } 24 }
23 25
24 linker() { 26 linker() {
25 echo "Creating symlink: ${1} => ~/${2}" 27 echo "Creating symlink: ${1} => ~/${2}"
26 ln -fs "${PWD}/${1}" "${HOME}/${2}" 28 ln -fs "${PWD}/${1}" "${HOME}/${2}"