You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set -g fish_greeting
# ─── Tools Initialization ─────────────────────────────────────────────────────# Initialize Zoxide (Better 'cd')iftype -q zoxide
zoxide init fish |source
end
# Initialize Starship (Prompt) - Uncomment if installed# starship init fish | source# ─── Abbreviations (Expandable shortcuts) ─────────────────────────────────────# Docker
abbr -a dcc 'docker compose'
abbr -a dcl 'docker logs -f'
abbr -a dcu 'docker compose up -d'
abbr -a dcd 'docker compose down'
abbr -a dps 'docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"'# Git (Essential for every dev)
abbr -a g 'git'
abbr -a ga 'git add'
abbr -a gc 'git commit -m'
abbr -a gp 'git push'
abbr -a gl 'git pull'
abbr -a gs 'git status'
abbr -a gd 'git diff'
abbr -a gco 'git checkout'# System
abbr -a n 'nano'
abbr -a v 'nvim'
abbr -a st 'fastfetch'
abbr -a c 'clear'
abbr -a j 'zoxide query'# ─── Aliases (Fixed replacements) ─────────────────────────────────────────────# Modern Replacementsalias ls="eza --icons --group-directories-first"alias ll="eza -alF --icons --git --header"alias tree="eza --tree --icons"alias cat="bat"alias grep="rg"alias top="btop"alias df="duf"alias du="gdu"# Better 'rm' (More robust check)iftype -q trash-put
alias rm="trash-put"elsealias rm="rm -i"
end
# Utilitiesalias 7za='7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on'alias ip="ip -color=auto"alias myip="curl ifconfig.me"# ─── Quick Navigation ────────────────────────────────────────────────────────alias ..="cd .."alias ...="cd ../.."alias ....="cd ../../.."functiondclean --description 'DANGER: Stop and remove ALL docker containers'set -l containers (docker ps -aq)
iftest -z "$containers"echo"No containers to clean."return 0
end
echo"You are about to stop and delete ALL Docker containers:"
docker ps -a
read -l -P "Are you sure? (y/N) " confirm
if string match -iq y $confirm
docker kill$containers
docker rm $containersecho"Cleanup done."elseecho"Cancelled."
end
end
functionconvert_images_to_webp --description "Convert images in current dir to WebP"set -l images (find . -maxdepth 1 -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" -o -iname "*.bmp"\))
iftest -z "$images"echo"No images found."return 1
end
forimgin$imagesset new_img (string replace -r '\.[^.]+$''.webp'$img)
echo"Converting $img -> $new_img"if cwebp -quiet $img -o $new_img
rm $imgelseecho"Error converting $img"
end
end
end
2. Post-Install Checklist
Application Installation & Setup
JetBrains IDEs: Install via Toolbox App (recommended over manual download).