How to Install zoxide on Windows
This guide will help you install zoxide on Windows using various methods.
Prerequisites
- Windows 10 or later
- PowerShell or Command Prompt
- Internet connection
Installation Methods
Method 1: Using Scoop (Recommended)
The easiest way to install zoxide on Windows is using Scoop:
If you don't have Scoop installed, install it first:
Method 2: Using Cargo
If you have Rust installed, you can use Cargo:
Note: If you don't have Rust installed, download and run the Rust installer from rustup.rs.
Method 3: Using Pre-built Binary
Download the pre-built binary from the zoxide releases page:
- Download
zoxide-x86_64-pc-windows-msvc.zipfrom the latest release - Extract the ZIP file
- Move
zoxide.exeto a directory in your PATH (e.g.,C:\Windows\System32or create a custom directory)
Or using PowerShell:
Shell Configuration
After installation, you need to initialize zoxide in your shell configuration file.
For PowerShell
Add the following to your PowerShell profile:
To find your profile location:
If the profile doesn't exist, create it:
Then add the initialization command and reload:
For CMD
For Command Prompt, you can create a batch file or add to your PATH. However, PowerShell is recommended for better zoxide integration.
For Git Bash / WSL
If you're using Git Bash or WSL (Windows Subsystem for Linux), follow the Linux installation instructions.
Verify Installation
Test that zoxide is installed correctly:
You should see the version number printed.
Basic Usage
Once installed and configured, you can start using zoxide:
Troubleshooting
Command Not Found
If you get "command not found" after installation:
- Check that zoxide is in your PATH:
-
If using Scoop, make sure Scoop's shims are in your PATH (usually automatic).
-
If using Cargo, add Cargo's bin directory to your PATH:
- Restart your terminal after modifying PATH.
Execution Policy Error
If you get an execution policy error in PowerShell:
Permission Denied
If you get permission errors:
- Make sure you have write permissions to the installation directory
- Try running PowerShell as Administrator
- Or install to a user directory instead
Next Steps
- Learn basic zoxide commands
- Configure advanced settings
- Check out performance tips