From 37ff7062874b72bafa99afe661f42653565ed511 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Wed, 11 Sep 2024 04:25:38 +0900 Subject: RESTRUCTURE. Replicate relative paths in public/ --- .../powershell/Microsoft.PowerShell_profile.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1 (limited to 'public/windows_shit/powershell') diff --git a/public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1 b/public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 0000000..fc55bac --- /dev/null +++ b/public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,19 @@ +# Access this file using $PROFILE +# +# By default, powershell does not allow execution of non-signed scripts +# > Get-ExecutionPolicy +# > Set-ExecutionPolicy -Scope CurrentUser RemoteSigned +# +# 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