diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-02-20 19:00:15 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-02-20 19:00:15 -0500 |
| commit | 5725cfe2fc0901e0bd37e767c27795a8be61f318 (patch) | |
| tree | fd7ceed7902f8f0b741a0511959829a3bcec71af /powershell | |
| parent | ce0aa414d1735b56e6cf3bf5b06bc01eff4908ab (diff) | |
| download | dotfiles-5725cfe2fc0901e0bd37e767c27795a8be61f318.tar.gz dotfiles-5725cfe2fc0901e0bd37e767c27795a8be61f318.tar.bz2 dotfiles-5725cfe2fc0901e0bd37e767c27795a8be61f318.zip | |
Add powershell profile file
Diffstat (limited to 'powershell')
| -rw-r--r-- | powershell/Microsoft.PowerShell_profile.ps1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/powershell/Microsoft.PowerShell_profile.ps1 b/powershell/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 0000000..866ed4c --- /dev/null +++ b/powershell/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,15 @@ +# Access this file using $PROFILE +# +# Home directory: +# cmd.exe: %USERPROFILE% +# Powershell: $ENV:USERPROFILE +# +# To break long commands in Powershell use a trailing backtick (`) + +# Custom colored prompt +# Ref.: https://stackoverflow.com/questions/6297072 +function prompt +{ + Write-Host "PS $(get-location)`n>" -nonewline -foregroundcolor DarkCyan + return ' ' +} |
