Set-Alias -Name ll -Value ls Set-Alias -Name pn -Value pnpm function open { param ($path) if ($path) { explorer.exe $path } else { Write-Output "Please input a path." } } function vvv { open D:\Programs\v2rayN\v2rayN.exe } function 1remote { open D:\Programs\1Remote\1Remote.exe } function proxyset { param ($url) $defUrl = "http://127.0.0.1:1080" if ($url) { $defUrl = $url } $env:http_proxy=$defUrl $env:https_proxy=$defUrl Write-Output "proxy is set to: $defUrl" } function proxyclear { $env:http_proxy="" $env:https_proxy="" } function gitproxyset { param ($url) $defUrl = "http://127.0.0.1:1080" if ($url) { $defUrl = $url } git config --global http.proxy $defUrl git config --global https.proxy $defUrl Write-Output "git proxy is set to:" git config list --global | findstr proxy } function gitproxyclear { git config --global --unset http.proxy git config --global --unset https.proxy Write-Output "git proxy is unset" git config list --global | findstr proxy } function proxyprint { Write-Output "http_proxy: $env:http_proxy" Write-Output "https_proxy: $env:https_proxy" } function GotoGitrepository { Set-Location D:\GitRepository } function GotoDesktop { Set-Location C:\Users\Administrator\Desktop } # oh-my-posh init pwsh | Invoke-Expression # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/quick-term.omp.json" | Invoke-Expression # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/takuya.omp.json" | Invoke-Expression # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/hunk.omp.json" | Invoke-Expression # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_rainbow.omp.json" | Invoke-Expression # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/star.omp.json" | Invoke-Expression # oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/M365Princess.omp.json" | Invoke-Expression oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/M365Princess_Re.omp.json" | Invoke-Expression