Mercurial > ec-dotfiles
comparison uninstall @ 0:cd87be0968d9
Initial import.
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Sat, 10 Jul 2010 11:57:25 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cd87be0968d9 |
---|---|
1 #!/bin/sh | |
2 | |
3 echo "Removing: ${1}" | |
4 echo "Press any key to continue" | |
5 read _ | |
6 | |
7 case "$1" in | |
8 tcsh) | |
9 for i in init exec.before exec.after; do | |
10 [ -e "${HOME}/.tcsh_${i}" ] && rm "${HOME}/.tcsh_${i}" | |
11 done | |
12 grep -v "#ECCORE_TCSH" "${HOME}/.cshrc" > .newcshrc | |
13 mv .newcshrc "${HOME}/.cshrc" | |
14 ;; | |
15 tmux) | |
16 SCRIPT_NAME=".tmux.conf" | |
17 ;; | |
18 hg) | |
19 SCRIPT_NAME=".hgrc" | |
20 ;; | |
21 esac | |
22 [ -n "${SCRIPT_NAME}" ] && rm -f "${HOME}/${SCRIPT_NAME}" |