Skip to content

Instantly share code, notes, and snippets.

@richardnfag
Created April 25, 2021 15:35
Show Gist options
  • Save richardnfag/a926505fd7d8523a80d45a9a740b1ff4 to your computer and use it in GitHub Desktop.
Save richardnfag/a926505fd7d8523a80d45a9a740b1ff4 to your computer and use it in GitHub Desktop.
My Powershell Prompt
# 1 - Run `notepad $PROFILE.CurrentUserCurrentHost`
# 1.1 - If $PROFILE.CurrentUserCurrentHost does not exists, run before `New-Item -Path $PROFILE.CurrentUserCurrentHost -ItemType "file" -Force`
# 2 - Copy and paste the following function:
function prompt {
Write-Host "($env:USERNAME) $([char]0x03BB) " -ForegroundColor Blue -NoNewline;
Write-Host "$PWD" -ForegroundColor Gray -NoNewline
" "
}
# 3 - Run `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment