[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>'
echo $profile
C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# modify and save
vim $PROFILE
. $PROFILE
Set-Alias cl clear
Set-Alias vim nvim
Set-Alias open explorer.exe
Set-Alias touch New-Item
Set-Alias lg lazygit
Set-Alias love love.exe
function desktop {
Set-Location "$home\Desktop"
}
# startup settings
cl
cd $home\leoua7
# Hey, this is china.
$ENV:ALL_PROXY = '<http://127.0.0.1:7890>'
# c++ dev env
$env:CC = "clang"
$env:CXX = "clang++"
$env:CMAKE_GENERATOR = "Ninja"
$env:EDITOR = "nvim"
$env:VISUAL = "nvim"
where command in powershell. Instead, you can use Get-Command or gcm.bat is for windows command lineļ¼ powershell use .ps1 instead.Set-ExecutionPolicy RemoteSigned