summaryrefslogtreecommitdiffstats
path: root/public/windows_shit/powershell/Microsoft.PowerShell_profile.ps1
blob: fc55bac508e3b30838960111517f9391173ed1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 ' '
}