1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Invoke-Expression (&starship init powershell)
$Env:http_proxy="http://127.0.0.1:7890";$Env:https_proxy="http://127.0.0.1:7890"
function Start-Conda { If (Test-Path "C:\Users\Anak1st\miniconda3\Scripts\conda.exe") { (& "C:\Users\Anak1st\miniconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | ?{$_} | Invoke-Expression } }
function Add-Msys2Path { $msys2Path = "C:\msys64\usr\bin" if (Test-Path $msys2Path) { $Env:Path += ";$msys2Path" Write-Output "Added $msys2Path to PATH" } else { Write-Output "$msys2Path not found" } }
function Start-MSVC_x64 { $VSPath = "C:\Program Files\Microsoft Visual Studio\2022\Community" import-Module "$VSPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" Enter-VsDevShell -VsInstallPath $VSPath -SkipAutomaticLocation -DevCmdArguments "-arch=x64 -host_arch=x64" cl }
|