pvincent 3 days ago
parent
commit
190a39c2b7
  1. 18
      lib/uninstall.bash

18
lib/uninstall.bash

@ -4,10 +4,18 @@
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && exit 1 [[ "$UID" -ne 0 ]] && echo 'root privilege required' && exit 1
cd cd
rm /etc/bash.bashrc
mv /etc/bash.bashrc.ORIGINAL /etc/bash.bashrc
rm /etc/inputrc
mv /etc/inputrc.ORIGINAL /etc/inputrc
rm /etc/vimrc/vimrc.{azerty,core,local,miaou,rookie}
if [[ -f /etc/bash.bashrc.ORIGINAL ]]; then
rm /etc/bash.bashrc
mv /etc/bash.bashrc.ORIGINAL /etc/bash.bashrc
fi
if [[ -f /etc/inputrc.ORIGINAL ]]; then
rm /etc/inputrc
mv /etc/inputrc.ORIGINAL /etc/inputrc
fi
rm -f /etc/vimrc/vimrc.{azerty,core,local,miaou,rookie}
rm -rf /opt/miaou-bash rm -rf /opt/miaou-bash
echo 'MIAOU-BASH fully uninstalled, restored from original' echo 'MIAOU-BASH fully uninstalled, restored from original'
Loading…
Cancel
Save