summaryrefslogtreecommitdiffstats
path: root/_windows
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-11-24 00:31:06 -0500
committerMitsuo Tokumori <[email protected]>2023-11-24 00:31:06 -0500
commite900c217c1e50a4067384c9bb3fe43dff61986c6 (patch)
treec12b723d503c2aefa2403aecb9e6488af1eea90c /_windows
parentd42c7eeec0ce9af6f9ff5ce501316e6a8c5e43b3 (diff)
downloaddotfiles-e900c217c1e50a4067384c9bb3fe43dff61986c6.tar.gz
dotfiles-e900c217c1e50a4067384c9bb3fe43dff61986c6.tar.bz2
dotfiles-e900c217c1e50a4067384c9bb3fe43dff61986c6.zip
Restructure dirs to mimic XDG base dirs
Non XDG base directories have a leading '_'.
Diffstat (limited to '_windows')
-rw-r--r--_windows/README.txt1
-rw-r--r--_windows/powershell/Microsoft.PowerShell_profile.ps119
2 files changed, 20 insertions, 0 deletions
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 ' '
+}