diff uninstall @ 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/uninstall	Sat Jul 10 11:57:25 2010 +0000
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "Removing: ${1}"
+echo "Press any key to continue"
+read _
+
+case "$1" in
+  tcsh)
+    for i in init exec.before exec.after; do
+      [ -e "${HOME}/.tcsh_${i}" ] && rm "${HOME}/.tcsh_${i}"
+    done
+    grep -v "#ECCORE_TCSH" "${HOME}/.cshrc" > .newcshrc
+    mv .newcshrc "${HOME}/.cshrc"
+  ;;
+  tmux)
+    SCRIPT_NAME=".tmux.conf"
+  ;;
+  hg)
+    SCRIPT_NAME=".hgrc"
+  ;;
+esac
+[ -n "${SCRIPT_NAME}" ] && rm -f "${HOME}/${SCRIPT_NAME}"