
🚀 Stop Typing Long Terminal Commands. Use Aliases Instead
As developers, we optimize APIs, databases, and smart contracts. But we rarely optimize our own workflow. I realized I was typing the same commands every single day: npm run dev git add . git commit -m "message" git push docker compose up --build npx hardhat test forge build It seems small. But friction compounds. So I reduced it. 🧠 What Are Shell Aliases? Aliases are shortcuts you define in your shell ( bash or zsh ) that map short commands to longer ones. Instead of typing: npm run dev You type: nd Same result. Less friction. 🛠 Step 1: Open Your Shell Config If you’re using: Zsh (Mac / Linux default nowadays) nano ~/.zshrc Bash nano ~/.bashrc ✍ Step 2: Add Aliases Here are some practical ones for Full-Stack + Web3 developers: # 📦 NPM alias nd = "npm run dev" alias nb = "npm run build" alias ni = "npm install" # 🌿 Git alias gs = "git status" alias ga = "git add ." alias gc = "git commit -m" alias gp = "git push" alias gpl = "git pull" alias gcb = "git checkout -b" alias gl = "git log
Continue reading on Dev.to Webdev
Opens in a new tab

