# HG changeset patch # User Edho Prima Arief # Date 1279308750 -25200 # Node ID de6ce93d40fc43f4afff87c9731d846eb6823064 # Parent 94ee419ad0478d7785173761ba41df893457200f Added action message. Fixed missed files. diff -r 94ee419ad047 -r de6ce93d40fc setup --- a/setup Sat Jul 10 12:38:52 2010 +0000 +++ b/setup Sat Jul 17 02:32:30 2010 +0700 @@ -1,6 +1,7 @@ #!/bin/sh install() { + uninstall #create symlinks linker "tcsh" ".tcsh_init" linker "tmux" ".tmux.conf" @@ -9,11 +10,11 @@ linker "bin" "bin-ec" #modify cshrc - uninstall_tcsh echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc" } linker() { + echo "Creating symlink: ${1} => ~/${2}" ln -fs "${PWD}/${1}" "${HOME}/${2}" } @@ -25,8 +26,11 @@ } uninstall() { - for i in .tcsh_init .tmux_conf .hgrc .vimrc; do - [ -e "${HOME}/${i}" ] && rm -f "${HOME}/${i}" + for i in .tcsh_init .tmux.conf .hgrc .vimrc bin-ec; do + if [ -e "${HOME}/${i}" ]; then + echo "Removing file: ~/${i}" + rm -f "${HOME}/${i}" + fi done uninstall_tcsh }