comparison setup @ 3:39ef7f7236fc

Added vimrc.
author Edho Prima Arief <me@myconan.net>
date Sat, 10 Jul 2010 12:18:06 +0000
parents ddd721f10cb8
children 94ee419ad047
comparison
equal deleted inserted replaced
2:1c563df145fa 3:39ef7f7236fc
3 install() { 3 install() {
4 #create symlinks 4 #create symlinks
5 linker "tcsh" ".tcsh_init" 5 linker "tcsh" ".tcsh_init"
6 linker "tmux" ".tmux.conf" 6 linker "tmux" ".tmux.conf"
7 linker "hg" ".hgrc" 7 linker "hg" ".hgrc"
8 linker "vim" ".vimrc"
8 9
9 #modify cshrc 10 #modify cshrc
10 uninstall_tcsh 11 uninstall_tcsh
11 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc" 12 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
12 } 13 }
21 mv .cleancshrc "${HOME}/.cshrc" 22 mv .cleancshrc "${HOME}/.cshrc"
22 fi 23 fi
23 } 24 }
24 25
25 uninstall() { 26 uninstall() {
26 for i in .tcsh_init .tmux_conf .hgrc; do 27 for i in .tcsh_init .tmux_conf .hgrc .vimrc; do
27 [ -e "${HOME}/${i}" ] && rm -f "${HOME}/${i}" 28 [ -e "${HOME}/${i}" ] && rm -f "${HOME}/${i}"
28 done 29 done
29 uninstall_tcsh 30 uninstall_tcsh
30 } 31 }
31 32