[ohmyposh](https://qiekn.notion.site/ohmyposh-341e1f0b94df47929712efded7cc67e7)
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>'
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
windows 中 .bat 是 cmd 脚本, powershell 脚本是 .ps1
There is no default where command in powershell. Instead, you can use Get-Command or gcm