Files
PowerShell-PowerShell/Microsoft.PowerShell.Linux.Host/PSL_profile.ps1
T

16 lines
308 B
PowerShell

(get-psprovider 'FileSystem').Home = $env:HOME
function prompt
{
"PSL " + $(get-location) + "> "
}
& {
for ($i = 0; $i -lt 26; $i++)
{
$funcname = ([System.Char]($i+65)) + ':'
$str = "function global:$funcname { set-location $funcname } "
invoke-expression $str
}
}