diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/install	Sat Jul 10 11:57:25 2010 +0000
@@ -0,0 +1,22 @@
+#!/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}"