Skip to content
Discussion options

You must be logged in to vote

Solutions

Solution 1: Use PowerShell or CMD (Recommended)

Simply switch to PowerShell or Command Prompt to run Phat:

  • PowerShell: Press Win + X and select "Windows PowerShell" or "Terminal"
  • CMD: Press Win + R, type cmd, and press Enter

Then run your phat commands normally.

Solution 2: Create a Bash Alias

Add this to your ~/.bashrc or ~/.bash_profile:

# Phat alias for Git Bash
phat() {
    powershell.exe -ExecutionPolicy Bypass -File "C:/Program Files (x86)/Phat/phat.ps1" "$@"
}

Note: Adjust the path if Phat is installed elsewhere. Use forward slashes (/) instead of backslashes.

After adding the alias:

  1. Restart your bash terminal, or
  2. Run: source ~/.bashrc

Now you can use phat commands in…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pphatdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants