-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
27 lines (21 loc) · 769 Bytes
/
uninstall.sh
File metadata and controls
27 lines (21 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
__bash_suite_program_dir=~/.bashful
__bash_suite_filesys=~/.bashful.filesys
echo Removing $__bash_suite_program_dir
rm -rf $__bash_suite_program_dir 2>/dev/null;
rm -rf $__bash_suite_filesys 2>/dev/null;
import_path_line='source ~/.bashful.filesys/bashful.rc'
edited_profile=$(cat ~/.bash_profile | sed -e "s#$import_path_line##g")
echo -e "$edited_profile" > ~/.bash_profile
# zsh users
edited_profile=$(cat ~/.zshrc | sed -e "s#$import_path_line##g")
echo -e "$edited_profile" > ~/.zshrc;
echo Done
echo;
if [ "$1" != "uninstalled-as-prep-for-install" ]; then
# prompt the user to restart terminal
echo;
echo BASHful Suite by kyle-west
echo Uninstall Complete
echo !!! Please restart your terminal to allow the changes to take effect !!!
echo;
fi