comparison setup @ 47:684a22aeb675

[setup] .blah.hur => .blah_hur
author Edho Prima Arief <me@myconan.net>
date Wed, 27 Apr 2011 21:23:57 +0700
parents 65f98c2936c1
children 3cd3f31d8a82
comparison
equal deleted inserted replaced
46:65f98c2936c1 47:684a22aeb675
2 2
3 install() { 3 install() {
4 uninstall 4 uninstall
5 #create symlinks 5 #create symlinks
6 linker "tcsh" ".tcsh_init" 6 linker "tcsh" ".tcsh_init"
7 linker "bash" ".bash.conf" 7 linker "bash" ".ecos_bash"
8 linker "tmux" ".tmux.conf" 8 linker "tmux" ".tmux.conf"
9 linker "hg" ".hgrc" 9 linker "hg" ".hgrc"
10 linker "vim" ".vimrc" 10 linker "vim" ".vimrc"
11 linker "inputrc" ".inputrc" 11 linker "inputrc" ".inputrc"
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 #and replaced . with _ for more sanity
14 linker "bin" ".ecos_bin"
14 15
15 #modify cshrc 16 #modify cshrc
16 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc" 17 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
17 #modify bash_profile and bashrc 18 #modify bash_profile and bashrc
18 echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bash_profile" 19 echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bash_profile"
19 echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bashrc" 20 echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bashrc"
20 } 21 }
21 22
22 linker() { 23 linker() {
23 echo "Creating symlink: ${1} => ~/${2}" 24 echo "Creating symlink: ${1} => ~/${2}"
24 ln -fs "${PWD}/${1}" "${HOME}/${2}" 25 ln -fs "${PWD}/${1}" "${HOME}/${2}"