rag
This commit is contained in:
42
docs/uninstall.sh
Executable file
42
docs/uninstall.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
# finish uninstaller
|
||||
|
||||
echo "Removing finish installation..."
|
||||
|
||||
# Remove binary
|
||||
if [ -f "$HOME/.local/bin/finish" ]; then
|
||||
rm -f "$HOME/.local/bin/finish"
|
||||
echo "✓ Removed $HOME/.local/bin/finish"
|
||||
fi
|
||||
|
||||
# Remove venv
|
||||
if [ -d "$HOME/.venvs/finish" ]; then
|
||||
rm -rf "$HOME/.venvs/finish"
|
||||
echo "✓ Removed $HOME/.venvs/finish"
|
||||
fi
|
||||
|
||||
# Remove config and cache
|
||||
if [ -d "$HOME/.finish" ]; then
|
||||
rm -rf "$HOME/.finish"
|
||||
echo "✓ Removed $HOME/.finish"
|
||||
fi
|
||||
|
||||
# Remove keybinding from .bashrc
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
if grep -q "# finish.py key-binding" "$HOME/.bashrc"; then
|
||||
sed -i '/# finish.py key-binding/,+8d' "$HOME/.bashrc"
|
||||
echo "✓ Removed keybinding from ~/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Remove keybinding from .zshrc
|
||||
if [ -f "$HOME/.zshrc" ]; then
|
||||
if grep -q "# finish.py key-binding" "$HOME/.zshrc"; then
|
||||
sed -i '/# finish.py key-binding/,+8d' "$HOME/.zshrc"
|
||||
echo "✓ Removed keybinding from ~/.zshrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Uninstall complete!"
|
||||
echo "Run 'source ~/.bashrc' to reload your shell"
|
||||
Reference in New Issue
Block a user