Created
April 25, 2021 15:35
-
-
Save richardnfag/a926505fd7d8523a80d45a9a740b1ff4 to your computer and use it in GitHub Desktop.
My Powershell Prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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