MIAOU-BASH is a collection of settings and helpers for leveraging BASH. Developer-friendly, it may be used as solo package with or without the miaou project.
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.

34 lines
699 B

#!/usr/bin/env miaou-bash
# Constants
# Functions
function uninstall {
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
}
# Main
source "$MIAOU_BASH_DIR"/lib/functions.bash
assert_system_mode
assert_root
cd || exit 2 # exit should not occur!
if _confirm_destructive 2>/dev/null; then
uninstall
echo 'MIAOU-BASH fully uninstalled, previous settings restored from original'
else
builtin exit 1
fi