Mercurial > ec-dotfiles
view 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 source
#!/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}"