When using Git Bash, MINGW64, or other bash terminals, you get:
$ pxp
bash: pxp: command not foundPxp uses .bat (batch) files which only work in Windows Command Prompt and PowerShell. Bash terminals on Windows don't recognize .bat files as executable commands.
Simply switch to PowerShell or Command Prompt to run Pxp:
- PowerShell: Press
Win + Xand select "Windows PowerShell" or "Terminal" - CMD: Press
Win + R, typecmd, and press Enter
Then run your pxp commands normally.
Add this to your ~/.bashrc or ~/.bash_profile:
# Pxp alias for Git Bash
pxp() {
powershell.exe -ExecutionPolicy Bypass -File "C:/Program Files (x86)/Pxp/pxp.ps1" "$@"
}Note: Adjust the path if Pxp is installed elsewhere. Use forward slashes (/) instead of backslashes.
After adding the alias:
- Restart your bash terminal, or
- Run:
source ~/.bashrc
Now you can use pxp commands in Git Bash.
You can run Pxp directly from bash using PowerShell:
powershell.exe -ExecutionPolicy Bypass -File "C:/Program Files (x86)/Pxp/pxp.ps1" listCreate a bash function wrapper. Add to ~/.bashrc:
export PXP_HOME="/c/Program Files (x86)/Pxp"
alias pxp='powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$PXP_HOME/pxp.ps1"'- Pxp is designed for Windows environments (PowerShell/CMD)
- It manages XAMPP which is a Windows application
- For the best experience, use PowerShell or CMD when working with Pxp
After configuring, test with:
pxp --version