[ohmyposh](https://qiekn.notion.site/ohmyposh-341e1f0b94df47929712efded7cc67e7)

Chocolatey

proxy

with clash

$proxy='<http://127.0.0.1:7890>'
$ENV:HTTP_PROXY=$proxy
$ENV:HTTPS_PROXY=$proxy

or

$ENV:ALL_PROXY ='<http://127.0.0.1:7890>'

config file

vim $PROFILE

Set-Alias cl clear
Set-Alias vim nvim
Set-Alias open explorer.exe
Set-Alias touch New-Item

function desktop { 
    Set-Location "$home\\Desktop"
}

cl
cd $home\\leoua7

$ENV:ALL_PROXY = '<http://127.0.0.1:7890>'

# modify and save
. $PROFILE

run in cmd as admin

Set-ExecutionPolicy RemoteSigned

ps1

windows 中 .batcmd 脚本, powershell 脚本是 .ps1

Tips

where

There is no default where command in powershell. Instead, you can use Get-Command or gcm