geek rescue kit Code
Brought to you by:
ctaf
#!/bin/sh
## ct-deinstall for ct-deinstall in /home/ctaf/.ctafconf/bin
##
## Made by GESTES Cedric
## Login <ctaf@epita.fr>
##
## Started on Thu Sep 29 05:25:53 2005 GESTES Cedric
## Last update Tue Oct 4 16:08:46 2005
##
list=~/.zshrc ~/.zshenv ~/.emacs ~/.bashrc ~/.fluxbox ~/.xsession ~/.xinitrc ~/.torsmorc ~/.xbindkeysrc ~/.tcshrc ~/.toprc
for i in $list; do
if [ -f $i ] && [ -f $i-previous ]; then
echo "would you like to restore this file: $i [y/n]?"
read yesno
if [ x$yesno = xy ] ; then
rm -rf $i
mv $i-previous $i
fi
fi
done