This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setopt HIST_IGNORE_ALL_DUPS | |
| setopt HIST_IGNORE_SPACE | |
| setopt HIST_SAVE_NO_DUPS | |
| setopt HIST_REDUCE_BLANKS | |
| setopt APPEND_HISTORY | |
| setopt CORRECT | |
| setopt NO_BEEP | |
| setopt INTERACTIVE_COMMENTS | |
| export PATH="$HOME/.local/bin:$HOME/bin:/usr/local/bin:/usr/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get user's Winget packages directory | |
| $userProfile = [System.Environment]::GetFolderPath('UserProfile') | |
| $wingetDir = Join-Path $userProfile "AppData\Local\Microsoft\WinGet\Packages" | |
| $pathsToAdd = @() | |
| Get-ChildItem -Path $wingetDir -Directory | ForEach-Object { | |
| $packageDir = $_.FullName |