comparison setup @ 17:73123c5ef818

~/bin-ec -> ~/.ecos.bin
author Edho Prima Arief <me@myconan.net>
date Fri, 05 Nov 2010 22:55:57 +0700
parents b5d0c1892294
children 738a2da8b79c
comparison
equal deleted inserted replaced
16:83fb6c590b38 17:73123c5ef818
6 linker "tcsh" ".tcsh_init" 6 linker "tcsh" ".tcsh_init"
7 linker "tmux" ".tmux.conf" 7 linker "tmux" ".tmux.conf"
8 linker "hg" ".hgrc" 8 linker "hg" ".hgrc"
9 linker "vim" ".vimrc" 9 linker "vim" ".vimrc"
10 linker "inputrc" ".inputrc" 10 linker "inputrc" ".inputrc"
11 linker "bin" "bin-ec" 11 #originally bin-ec. Renamed to .ecos.bin for sanity when listing home
12 linker "bin" ".ecos.bin"
12 13
13 #modify cshrc 14 #modify cshrc
14 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc" 15 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
15 } 16 }
16 17
25 mv .cleancshrc "${HOME}/.cshrc" 26 mv .cleancshrc "${HOME}/.cshrc"
26 fi 27 fi
27 } 28 }
28 29
29 uninstall() { 30 uninstall() {
30 for i in .tcsh_init .tmux.conf .hgrc .vimrc .inputrc bin-ec; do 31 for i in .tcsh_init .tmux.conf .hgrc .vimrc .inputrc bin-ec .ecos.bin; do
31 if [ -e "${HOME}/${i}" ]; then 32 if [ -e "${HOME}/${i}" ]; then
32 echo "Removing file: ~/${i}" 33 echo "Removing file: ~/${i}"
33 rm -f "${HOME}/${i}" 34 rm -f "${HOME}/${i}"
34 fi 35 fi
35 done 36 done