This script installs Rust and gitoxide, a fast, opinionated Git library for Rust, on your system. It supports macOS, Linux, and Windows (via WSL or other Unix-like environments).
Before running this script, ensure you have the following installed:
- curl: Used to download the Rust installer.
- git: Needed for installing gitoxide and managing git repositories.
- cargo: The Rust package manager, which is installed as part of the Rust installation process.
-
Clone the repository or download the
install_gitoxide.shfile:git clone https://github.com/MrAshCreates/Gitoxide-Installer.git cd your-repo -
Make the script executable:
chmod +x install_gitoxide.sh
-
Run the script:
./install_gitoxide.sh
- When you run the script, it checks if Rust is installed. If not, it installs Rust via the Rustup installer.
- It then installs gitoxide using Cargo, the Rust package manager.
- If gitoxide is already installed, the script will prompt you to reinstall or uninstall it.
- If you're on macOS or Linux, the script gives you the option to install Rust and gitoxide via Homebrew.
- After installation, the Cargo bin directory (
$HOME/.cargo/bin) is added to your PATH to makegix(gitoxide command-line tool) accessible.
If you prefer to use Homebrew for installation, follow these steps:
-
Run the script:
./install_gitoxide.sh
-
When prompted, type
yto install Rust and gitoxide via Homebrew.
If you already have gitoxide installed and want to reinstall or uninstall it, follow these steps:
-
Run the script:
./install_gitoxide.sh
-
When prompted, select
rto reinstall oruto uninstall gitoxide.
- This script assumes you have administrative privileges to install packages on your system.
- On Windows, ensure you are running the script within a Unix-like environment (e.g., WSL, Git Bash).