-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.sh
64 lines (56 loc) · 1.4 KB
/
uninstall.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
################
## VARIABLES ##
################
# backslash-escape colors
BLACK='\033[0;30m'
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
WHITE='\033[0;37m'
RESET='\033[0m'
if [[ -d $HOME/.oh-my-zsh ]]; then
uninstall_oh_my_zsh
rm -rf .oh-my-zsh
echo -e "Removed oh-my-zsh..."
else
echo -e "Oh-My-Zsh isn't installed..."
fi
if [[ -d $HOME/.fzf ]]; then
cd $HOME/.fzf/
. uninstall
cd $HOME
rm -rf .fzf*
echo -e "Removed .fzf"
else
echo -e "Fzf isn't installed..."
fi
if [[ -d $HOME/.zinit ]]; then
rm -rf $HOME/.zinit
echo -e "Removed .zinit directory..."
else
echo -e "Zinit isn't installed..."
fi
if [[ -f $HOME/.zshenv ]]; then
rm -rf $HOME/.zshenv
echo -e "Removed .zshenv directory..."
else
echo -e "Zshenv isn't installed..."
fi
if [[ -d $HOME/dotfiles ]]; then
cd $HOME/dotfiles
echo -e "Stowing Bash/Git/Vim/Zsh configs..."
stow -D bash git vim zsh
cd $HOME
rm -rf $HOME/dotfiles
echo -e "Removed dotfiles directory..."
else
echo -e "Your dotfiles aren't installed..."
fi
echo -e "${MAGENTA}----------------------------------------${RESET}"
echo -e "${BLUE} Uninstalled ${RESET}"
echo -e "${BLUE} Old dotfiles are in .backup ${RESET}"
echo -e "${MAGENTA}----------------------------------------${RESET}"