changeset 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 d9aace34d144
children f993714efa7b
files setup tcsh
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
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
 }
 
--- a/tcsh	Sat Jun 04 19:24:48 2011 +0700
+++ b/tcsh	Sat Jun 04 19:25:34 2011 +0700
@@ -1,10 +1,10 @@
 #!/usr/bin/env tcsh
-[ -e "${HOME}/.tcsh_init.before" ] && source "${HOME}/.tcsh_init.before"
+[ -e "${HOME}/.ecos_tcsh.before" ] && source "${HOME}/.ecos_tcsh.before"
 umask 22
 limit coredumpsize 0
 
 set prompt="[%B%n@%m %~%b]%# "
-set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos.}bin)
+set path=({,/usr}/{bin,sbin} "${HOME}"/{,.ecos_}bin)
 set history=1000
 set savehist=1000
 set nobeep
@@ -95,4 +95,4 @@
 
 ( which vim ) > /dev/null && alias vi vim && setenv EDITOR vim
 
-[ -e "${HOME}/.tcsh_init.after" ] && source "${HOME}/.tcsh_init.after"
+[ -e "${HOME}/.ecos_tcsh.after" ] && source "${HOME}/.ecos_tcsh.after"