diff setup @ 332:db66d53e10ea

Canonical name for configs.
author Edho Arief <edho@myconan.net>
date Mon, 19 Mar 2012 12:52:12 +0700
parents 795ad57794a6
children 94d0e4826d28
line wrap: on
line diff
--- a/setup	Mon Mar 19 12:49:40 2012 +0700
+++ b/setup	Mon Mar 19 12:52:12 2012 +0700
@@ -21,7 +21,7 @@
 _tcsh() {
   case "$1" in
     uninstall|install)
-      _rc "${1}" "tcsh" ".ecos_tcsh"
+      _rc "${1}" "cshrc" ".ecos_tcsh"
       _init "${1}" 'test -r "${HOME}/.ecos_tcsh" && source "${HOME}/.ecos_tcsh" #ECCORE_TCSH' ".cshrc"
     ;;
   esac
@@ -30,7 +30,7 @@
 _bash() {
   case "$1" in
     uninstall|install)
-      _rc "${1}" "bash" ".ecos_bash"
+      _rc "${1}" "bashrc" ".ecos_bash"
      _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bash_profile"
      _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bashrc"
     ;;
@@ -40,7 +40,7 @@
 _zsh() {
   case "$1" in
     uninstall|install)
-      _rc "${1}" "zsh" ".ecos_zsh"
+      _rc "${1}" "zshrc" ".ecos_zsh"
       _init "${1}" '[ -r "${HOME}/.ecos_zsh" ] && . "${HOME}/.ecos_zsh" #ECCORE_ZSH' ".zshrc"
     ;;
   esac
@@ -107,8 +107,8 @@
     _tcsh "${1}"
     _bash "${1}"
     _zsh "${1}"
-    _rc "${1}" "tmux" ".tmux.conf"
-    _rc "${1}" "hg" ".hgrc"
+    _rc "${1}" "tmux.conf" ".tmux.conf"
+    _rc "${1}" "hgrc" ".hgrc"
     _rc "${1}" "vimrc" ".vimrc"
     _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"
     _rc "${1}" "inputrc" ".inputrc"