comparison install @ 0:cd87be0968d9

Initial import.
author Edho Prima Arief <me@myconan.net>
date Sat, 10 Jul 2010 11:57:25 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cd87be0968d9
1 #!/bin/sh
2
3 scripts="tcsh vim tmux"
4
5 case "$1" in
6 tcsh)
7 SCRIPT_SOURCE="tcsh"
8 SCRIPT_DEST=".tcsh_init"
9 grep -v '#ECCORE_TCSH' "${HOME}/.cshrc" > .cleancshrc
10 echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> .cleancshrc
11 mv .cleancshrc "${HOME}/.cshrc"
12 ;;
13 tmux)
14 SCRIPT_SOURCE="tmux"
15 SCRIPT_DEST=".tmux.conf"
16 ;;
17 hg)
18 SCRIPT_SOURCE="hg"
19 SCRIPT_DEST=".hgrc"
20 esac
21
22 ln -s "${PWD}/${SCRIPT_SOURCE}" "${HOME}/${SCRIPT_DEST}"