From 5725cfe2fc0901e0bd37e767c27795a8be61f318 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Mon, 20 Feb 2023 19:00:15 -0500 Subject: Add powershell profile file --- powershell/Microsoft.PowerShell_profile.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 powershell/Microsoft.PowerShell_profile.ps1 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 ' ' +} -- cgit v1.2.3