You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
558 B
26 lines
558 B
#!/usr/bin/env miaou-bash
|
|
|
|
# MAIN
|
|
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && exit 1
|
|
|
|
cd || exit
|
|
|
|
source "$MIAOU_BASH_DIR"/lib/functions.bash
|
|
|
|
_confirm_destructive
|
|
|
|
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
|
|
|
|
unset MIAOU_BASH_DIR
|
|
echo 'MIAOU-BASH fully uninstalled, restored from original'
|