Mercurial > ec-dotfiles
view install @ 0:cd87be0968d9
Initial import.
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Sat, 10 Jul 2010 11:57:25 +0000 |
parents | |
children |
line wrap: on
line source
#!/bin/sh scripts="tcsh vim tmux" case "$1" in tcsh) SCRIPT_SOURCE="tcsh" SCRIPT_DEST=".tcsh_init" grep -v '#ECCORE_TCSH' "${HOME}/.cshrc" > .cleancshrc echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> .cleancshrc mv .cleancshrc "${HOME}/.cshrc" ;; tmux) SCRIPT_SOURCE="tmux" SCRIPT_DEST=".tmux.conf" ;; hg) SCRIPT_SOURCE="hg" SCRIPT_DEST=".hgrc" esac ln -s "${PWD}/${SCRIPT_SOURCE}" "${HOME}/${SCRIPT_DEST}"