aboutsummaryrefslogtreecommitdiff
path: root/configs/Microsoft.PowerShell_profile.ps1
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-28 23:13:39 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-28 23:13:39 +0800
commita0f2f7e29035553562941f4046db88d707daf199 (patch)
treeb6b56019f89a2f3b1a6cffccba2849687ee61241 /configs/Microsoft.PowerShell_profile.ps1
parent346b5256b99e28cd5c67c03dca4be84e1c75f749 (diff)
downloadcrupest-a0f2f7e29035553562941f4046db88d707daf199.tar.gz
crupest-a0f2f7e29035553562941f4046db88d707daf199.tar.bz2
crupest-a0f2f7e29035553562941f4046db88d707daf199.zip
chore(store): move everything to store.
Diffstat (limited to 'configs/Microsoft.PowerShell_profile.ps1')
-rw-r--r--configs/Microsoft.PowerShell_profile.ps135
1 files changed, 0 insertions, 35 deletions
diff --git a/configs/Microsoft.PowerShell_profile.ps1 b/configs/Microsoft.PowerShell_profile.ps1
deleted file mode 100644
index aeced5f..0000000
--- a/configs/Microsoft.PowerShell_profile.ps1
+++ /dev/null
@@ -1,35 +0,0 @@
-function Use-VC {
- param(
- [Parameter()]
- [ValidateSet('x64', 'x86')]
- $Arch = 'x64'
- )
-
- if ($Arch -eq 'x86') {
- $p = 'x86';
- }
- else {
- $p = 'amd64'
- }
-
- cmd /c "`"$(vswhere.exe -format value -property installationPath)\VC\Auxiliary\Build\vcvars64.bat`" $p & set" |
- ForEach-Object {
- if ($_ -match '=') {
- $v = $_ -split '='
- Set-Item -Force -Path "ENV:\$($v[0])" -Value "$($v[1])"
- }
- }
- Pop-Location
- Write-Host "Visual Studio Command Prompt variables set." -ForegroundColor Yellow
-}
-
-
-function Set-Proxy {
- $env:http_proxy = "http://127.0.0.1:2080"
- $env:https_proxy = "http://127.0.0.1:2080"
-}
-
-function Reset-Proxy {
- Remove-Item env:http_proxy
- Remove-Item env:https_proxy
-}