Installation
promptcmd can be installed on Linux, macOS, and Windows using several methods. Choose the installation method that works best for your platform.
Linux/macOS (Shell)
The fastest way to install promptcmd on Linux or macOS:
curl -LsSf https://installer.promptcmd.sh | shThis installer will:
- Download the latest version for your platform
- Install the
promptcmdandpromptctlbinaries - Add the installation directory to your PATH
macOS (Homebrew)
If you prefer using Homebrew:
brew install tgalal/tap/promptcmdThis method integrates with Homebrew's update system:
# Update promptcmd
brew upgrade promptcmdWindows (PowerShell)
Run this command in PowerShell
irm https://installer-ps.promptcmd.sh | iexThis will download and install promptcmd to your system.
Windows (MSI)
Download the MSI installer from the releases page and run it.
- Go to GitHub Releases
- Download the
.msifile for Windows - Double-click to install
- Follow the installation wizard
Verifying Installation
After installation, verify that promptcmd is correctly installed by checking the version installed.
promptctl --versionINFO
Depending on the installation method, you may need to restart your shell first.
Troubleshooting
Command Not Found
If you get a "command not found" error after installation, ensure the installation directory is in your PATH:
Linux/macOS
Add this to your ~/.bashrc, ~/.zshrc, or shell config:
export PATH="$HOME/.promptcmd/bin:$PATH"Then reload your shell:
source ~/.bashrc # or ~/.zshrcWindows
The installer should automatically add to PATH. If not:
- Search for "Environment Variables" in Windows Settings
- Edit your user PATH variable
- Add the promptcmd installation directory
- Restart your terminal
Permission Denied
On Linux/macOS, if you encounter permission errors:
chmod +x ~/.local/bin/promptcmd ~/.local/bin/promptctl