Skip to content

Instantly share code, notes, and snippets.

View hbread00's full-sized avatar

Bread hbread00

View GitHub Profile
@hbread00
hbread00 / .zshrc
Last active October 24, 2025 10:05
my zshrc
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"
@hbread00
hbread00 / winget_package_to_path.ps1
Last active September 22, 2025 00:54
PowerShell script to add winget package path to environment variables PATH, only for portable packages
# 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