mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
16 lines
308 B
PowerShell
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
|
|
}
|
|
}
|