# On macOS brew install fzf sudo apt install fzf
function killport() lsof -i tcp:$1 Now run: killport 3000 → It kills everything on port 3000 instantly. No more hunting for PIDs. grep is slow on large codebases. Use rg (ripgrep) instead. It respects .gitignore and is 10x faster. rafian.com
alias rm='trash' Deleted files go to your system Trash. You can restore them. This has saved my career at least twice. Pressing the up arrow 20 times is for beginners. Instead, type a partial command and press Ctrl+R . # On macOS brew install fzf sudo apt
At , I believe in working smarter, not harder. Here are 5 terminal tricks that actually save me 2+ hours every single week. 1. The “Fuzzy Finder” for Instant File Navigation Stop using cd ../../projects/client/v2/src/components . Instead, install fzf (Fuzzy Finder). Use rg (ripgrep) instead
Install trash instead of using rm directly: