Uninstallation
If you ever need to remove Bimagic from your system, you have two options:
Option 1: Curl Directly (Recommended)
Run the uninstall script directly from GitHub:
curl -sSL https://raw.githubusercontent.com/orion-kernel/bimagic/main/uninstall.sh | bash
Option 2: Manual Uninstallation
-
Remove the Bimagic script:
# Remove from user directory (if installed there)
rm -f ~/bin/bimagic
# Remove from system directory (if installed there - requires sudo)
sudo rm -f /usr/local/bin/bimagic -
Optional: Remove GitHub credentials from your shell configuration:
# Edit your shell config file (e.g., ~/.bashrc, ~/.zshrc)
# Remove lines containing GITHUB_USER and GITHUB_TOKEN
nano ~/.bashrc # or ~/.zshrc
What the Uninstall Script Does
- Finds Installations: Checks common installation directories (~/bin and /usr/local/bin).
- Confirmation: Asks for confirmation before proceeding.
- Removes Bimagic: Deletes the script and
wzalias from all found locations. - Cleans Shell Config: Offers to remove GITHUB_USER, GITHUB_TOKEN, and the Ctrl + B shell integrations from your config files.
- Creates Backups: Creates timestamped backups of modified shell configuration files.
Safety Features
- Asks for confirmation before removing anything.
- Creates backups of modified configuration files.
- Uses sudo only when necessary (for system directories).
- Provides clear feedback about what's happening.
- Includes timestamped backups to prevent data loss.