
The 3 Bash Aliases That Save Me 30 Minutes Every Day
I've been tuning my shell for 6 years. Most aliases I create, I never use again. But three have stuck — and they save me genuine time. 1. gp — Git Push With Branch Tracking alias gp = 'git push -u origin $(git branch --show-current)' I type gp instead of git push -u origin feature/my-branch-name dozens of times a day. The --show-current flag grabs the current branch name automatically. Time saved: ~15 seconds × 20 pushes/day = 5 minutes/day 2. serve — Instant HTTP Server alias serve = 'python3 -m http.server 8000' Need to share a file? Preview HTML? Test CORS? Just cd into a directory and type serve . Python's built-in server is good enough for 90% of cases. For more features: alias serve = 'npx serve -l 8000' # Directory listing, CORS headers, SPA support Time saved: ~30 seconds × 5 uses/day = 2.5 minutes/day 3. .. / ... / .... — Fast Directory Navigation alias .. = 'cd ..' alias ... = 'cd ../..' alias .... = 'cd ../../..' Tiny, but I use these 50+ times per day. It adds up. Bonus — m
Continue reading on Dev.to DevOps
Opens in a new tab




