Skip to content

Commit

Permalink
Installation work... wip
Browse files Browse the repository at this point in the history
  • Loading branch information
raptor235 committed Jun 19, 2024
1 parent 5168874 commit 83acc23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util/uninstall_fpd_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ if [[ -f ~/.fpd-shell/.fpd-shellrc ]]; then
fi

uninstall_fpd_shell() {
log_heading "Uninstalling FPD Shell..."
echo "Uninstalling FPD Shell..."

# Remove FPD Shell directory
if [[ -d ~/.fpd-shell ]]; then
rm -rf ~/.fpd-shell
log_success "FPD Shell directory removed."
echo "FPD Shell directory removed."
fi

# Remove FPD Shell sourcing from .zshrc or .bashrc
Expand All @@ -22,18 +22,18 @@ uninstall_fpd_shell() {
sed -i '' '/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/d' ~/.zshrc
sed -i '' '/ZSH=$HOME\/.oh-my-zsh/d' ~/.zshrc
sed -i '' '/source $ZSH\/oh-my-zsh.sh/d' ~/.zshrc
log_success "Removed FPD Shell sourcing from .zshrc."
echo "Removed FPD Shell sourcing from .zshrc."
elif [[ -f ~/.bashrc ]]; then
sed -i '' '/source ~\/.fpd-shell\/fpd-shell.sh/d' ~/.bashrc
sed -i '' '/source ~\/.fpd-shell\/.fpd-shellrc/d' ~/.bashrc
log_success "Removed FPD Shell sourcing from .bashrc."
echo "Removed FPD Shell sourcing from .bashrc."
fi
}

# Function to uninstall Oh My Zsh
uninstall_oh_my_zsh() {
if [[ -d ~/.oh-my-zsh ]]; then
sh ~/.oh-my-zsh/tools/uninstall.sh --unattended
log_success "Oh My Zsh uninstalled."
echo "Oh My Zsh uninstalled."
fi
}

0 comments on commit 83acc23

Please sign in to comment.