@@ -204,14 +204,14 @@ function win_install_latex() {
204204 log_msg " download and extracting StrawberryPerl (~15min)"
205205 win_install_exe_from_zip $url " $env: LOCALAPPDATA \Programs\StrawberryPerl" " perl\bin\perl.exe"
206206 log_msg " download and extracting finished"
207- win_path_add(" ${ env: LOCALAPPDATA} \Programs\StrawberryPerl\perl\bin" )
207+ win_path_add(" $env: LOCALAPPDATA \Programs\StrawberryPerl\perl\bin" )
208208 # install miktex
209209 winget_install MikTex.MikTex
210210}
211211
212212function win_install_ffmpeg () {
213213 winget_install Gyan.FFmpeg
214- win_path_add(" ${ env: LOCALAPPDATA} \Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.1.1-full_build\bin" )
214+ win_path_add(" $env: LOCALAPPDATA \Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.1.1-full_build\bin" )
215215}
216216
217217function win_install_vim () {
@@ -250,7 +250,7 @@ function winget_uninstall() {
250250
251251function winget_fix_installation () {
252252 sudo {
253- Remove-Item - Recurse " ${ env: LOCALAPPDATA} \Temp\WinGet\" - Force - ErrorAction SilentlyContinue
253+ Remove-Item - Recurse " $env: LOCALAPPDATA \Temp\WinGet\" - Force - ErrorAction SilentlyContinue
254254 Remove-Item - Recurse " $env: LOCALAPPDATA \Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe" - Force - ErrorAction SilentlyContinue
255255 Remove-Item - Recurse " C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*" - Force - ErrorAction SilentlyContinue
256256 winget source update
@@ -343,7 +343,7 @@ IconIndex=0
343343}
344344
345345function explorer_hide_home_dotfiles {
346- $paths = Get-ChildItem - LiteralPath $env: userprofile - Force - ErrorAction SilentlyContinue |
346+ $paths = Get-ChildItem - LiteralPath $env: USERPROFILE - Force - ErrorAction SilentlyContinue |
347347 Where-Object { $_.Name -like ' .*' -or $_.Name -like ' *.lock' } |
348348 Select-Object - ExpandProperty FullName
349349 $paths = $paths | Where-Object { Test-Path - LiteralPath $_ }
@@ -513,7 +513,7 @@ function win_system_enable_ssh_agent() {
513513 Set-Service ssh- agent - StartupType Automatic
514514 Start-Service ssh- agent
515515 Get-Service ssh- agent
516- ssh- add " ${ env: userprofile} \\.ssh\\id_rsa"
516+ ssh- add " $env: USERPROFILE \\.ssh\\id_rsa"
517517}
518518
519519# -- onedrive --
@@ -647,15 +647,15 @@ function win_declutter_ui() {
647647
648648function win_declutter_home_folders () {
649649 $paths = @ (
650- " ${ env: userprofile} \Cookies"
651- " ${ env: userprofile} \Local Settings"
652- " ${ env: userprofile} \My Documents"
653- " ${ env: userprofile} \Start Menu"
654- " ${ env: userprofile} \PrintHood"
655- " ${ env: userprofile} \Recent"
656- " ${ env: userprofile} \SendTo"
657- " ${ env: userprofile} \NetHood"
658- " ${ env: userprofile} \Templates"
650+ " $env: USERPROFILE \Cookies"
651+ " $env: USERPROFILE \Local Settings"
652+ " $env: USERPROFILE \My Documents"
653+ " $env: USERPROFILE \Start Menu"
654+ " $env: USERPROFILE \PrintHood"
655+ " $env: USERPROFILE \Recent"
656+ " $env: USERPROFILE \SendTo"
657+ " $env: USERPROFILE \NetHood"
658+ " $env: USERPROFILE \Templates"
659659 )
660660 $paths | ForEach-Object {
661661 if (Test-Path " $_ " ) {
0 commit comments