diff setup @ 74:54a82956bb11

[tcsh,setup] updated tcsh to new naming scheme.
author Edho Prima Arief <me@myconan.net>
date Sat, 04 Jun 2011 19:25:34 +0700
parents e6aa07cf62cc
children 7c01fc6f7460
line wrap: on
line diff
--- a/setup	Sat Jun 04 19:24:48 2011 +0700
+++ b/setup	Sat Jun 04 19:25:34 2011 +0700
@@ -3,7 +3,7 @@
 install() {
   uninstall
   #create symlinks
-  linker "tcsh" ".tcsh_init"
+  linker "tcsh" ".ecos_tcsh"
   linker "bash" ".ecos_bash"
   linker "zsh" ".ecos_zsh"
   linker "tmux" ".tmux.conf"
@@ -15,7 +15,7 @@
   linker "bin" ".ecos_bin"
 
   #modify cshrc
-  echo '[ -r "${HOME}/.tcsh_init" ] && source "${HOME}/.tcsh_init" #ECCORE_TCSH' >> "${HOME}/.cshrc"
+  echo '[ -r "${HOME}/.ecos_tcsh" ] && source "${HOME}/.ecos_tcsh" #ECCORE_TCSH' >> "${HOME}/.cshrc"
   #modify bash_profile and bashrc
   echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bash_profile"
   echo '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' >> "${HOME}/.bashrc"
@@ -36,7 +36,7 @@
 }
 
 uninstall() {
-  for i in .tcsh_init .tmux.conf .hgrc .vimrc .inputrc bin-ec .ecos.bin; do
+  for i in .ecos_tcsh .tmux.conf .hgrc .vimrc .inputrc bin-ec .ecos.bin .ecos_bin .ecos_bash .ecos_zsh; do
     if [ -f "${HOME}/${i}" ]; then
       echo "Removing file: ~/${i}"
       rm -f "${HOME}/${i}"
@@ -47,8 +47,8 @@
 
 update() {
   if [ -f "${HOME}/.tcsh_exec" ]; then
-    mv -f "${HOME}/.tcsh_exec" "${HOME}/.tcsh_init.after"
-    echo "Moved: ${HOME}/.tcsh_exec => ${HOME}/.tcsh_init.after"
+    mv -f "${HOME}/.tcsh_exec" "${HOME}/.ecos_tcsh.after"
+    echo "Moved: ${HOME}/.tcsh_exec => ${HOME}/.ecos_tcsh.after"
   fi
 }