summaryrefslogtreecommitdiffstats
path: root/public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1')
-rw-r--r--public/windows_shit/powershell/Microsoft.PowerShell_profile.ps119
1 files changed, 19 insertions, 0 deletions
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 ' '
+}