From e900c217c1e50a4067384c9bb3fe43dff61986c6 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Fri, 24 Nov 2023 00:31:06 -0500 Subject: Restructure dirs to mimic XDG base dirs Non XDG base directories have a leading '_'. --- _windows/README.txt | 1 + _windows/powershell/Microsoft.PowerShell_profile.ps1 | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 _windows/README.txt create mode 100644 _windows/powershell/Microsoft.PowerShell_profile.ps1 (limited to '_windows') diff --git a/_windows/README.txt b/_windows/README.txt new file mode 100644 index 0000000..da0c1b4 --- /dev/null +++ b/_windows/README.txt @@ -0,0 +1 @@ +ugly stuff diff --git a/_windows/powershell/Microsoft.PowerShell_profile.ps1 b/_windows/powershell/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 0000000..fc55bac --- /dev/null +++ b/_windows/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