comparison setup @ 40:34818dfa7f36

[bash][setup] we have bash. Also updated setup to reflect change.
author Edho Prima Arief <me@myconan.net>
date Tue, 26 Apr 2011 12:52:30 +0700
parents 5db1b912f66b
children 1f1af28f36e9
comparison
equal deleted inserted replaced
39:3a9d39d8805b 40:34818dfa7f36
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 "tmux" ".tmux.conf" 8 linker "tmux" ".tmux.conf"
8 linker "hg" ".hgrc" 9 linker "hg" ".hgrc"
9 linker "vim" ".vimrc" 10 linker "vim" ".vimrc"
10 linker "inputrc" ".inputrc" 11 linker "inputrc" ".inputrc"
11 #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
12 linker "bin" ".ecos.bin" 13 linker "bin" ".ecos.bin"
13 14
14 #modify cshrc 15 #modify cshrc
15 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
18 echo '[ -r "${HOME}/.bash.conf" ] && . "${HOME}/.bash.conf" #ECCORE_BASH' >> "${HOME}/.bash_profile"
16 } 19 }
17 20
18 linker() { 21 linker() {
19 echo "Creating symlink: ${1} => ~/${2}" 22 echo "Creating symlink: ${1} => ~/${2}"
20 ln -fs "${PWD}/${1}" "${HOME}/${2}" 23 ln -fs "${PWD}/${1}" "${HOME}/${2}"