summaryrefslogtreecommitdiffstats
path: root/windows/powershell/Microsoft.PowerShell_profile.ps1
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-11-23 22:01:36 -0500
committerMitsuo Tokumori <[email protected]>2023-11-23 22:01:36 -0500
commit19487f950f1c28fd8403d8ce320300c0b8517b82 (patch)
tree265890a174d2e4ea3258b9f55546a45aa305ffb5 /windows/powershell/Microsoft.PowerShell_profile.ps1
parent1621463f17260f560fac5cf2745fe970e8e0190c (diff)
downloaddotfiles-19487f950f1c28fd8403d8ce320300c0b8517b82.tar.gz
dotfiles-19487f950f1c28fd8403d8ce320300c0b8517b82.tar.bz2
dotfiles-19487f950f1c28fd8403d8ce320300c0b8517b82.zip
Define EDITOR and VISUAL env vars
Diffstat (limited to 'windows/powershell/Microsoft.PowerShell_profile.ps1')
-rw-r--r--windows/powershell/Microsoft.PowerShell_profile.ps119
1 files changed, 19 insertions, 0 deletions
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 ' '
+}