Files
scm_breeze/uninstall.sh
2018-08-31 07:29:44 -04:00

16 lines
333 B
Bash
Executable File

#!/bin/sh
# uninstall by (github: bernardofire)
# Remove line from bashrc and zshrc if present.
sed="sed -i"
if [[ $OSTYPE == "Darwin" ]]; then
sed="sed -i ''"
fi
for rc in bashrc zshrc; do
if [ -f "$HOME/.$rc" ]; then
$sed '/scm_breeze/d' "$HOME/.$rc" &&
printf "Removed SCM Breeze from %s\n" "$HOME/.$rc"
fi
done