Shell Aliases
A curated set of shell aliases to speed up your terminal workflow.
Why aliases?
Type less, do more. Aliases turn repetitive commands into short keystrokes so you stay in flow.
The file
## Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ~='cd ~'
alias c='clear'
## Lists
alias ll='ls -lah'
alias la='ls -A'
alias l='ls -lh'
## Git
alias g='git'
alias gs='git status -sb'
alias ga='git add'
alias gaa='git add .'
alias gc='git commit'
alias gcm='git commit -m'
alias gcmsg='git commit -m'
alias gp='git push'
alias gl='git pull'
alias gb='git branch'
alias gco='git checkout'
alias gd='git diff'
alias gds='git diff --staged'
alias go='gh browse'
## Package Manager
alias prb='pnpm run build'
alias prt='pnpm run test'
alias p='pnpm'
alias pd='p dev'
## Save My Ass
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
## Misc
alias reload='source ~/.zshrc'
alias cls="clear"
alias h="history"
alias grep="grep --color=auto"
alias df="df -h"
alias du="du -h"
alias mkdir="mkdir -pv"
alias myip="curl ifconfig.me"
alias ports="netstat -tulanp"
## Claude
alias clauded="claude --dangerously-skip-permissions"
## Modern CLI Replacements (uncomment if you have the tools installed, see table below)
# alias ls="eza --icons"
# alias ll="eza -la --icons --git"
# alias tree="eza --tree"
# alias cat="bat"
# alias grep="rg"
# alias find="fd"
# alias du="dust"
# alias top="btop"
# alias diff="delta"Modern CLI replacements
The Modern CLI Replacements section is commented out by default. Uncomment the ones you want after installing the tools:
Install all of them at once with Homebrew:
brew install eza bat ripgrep fd dust btop git-deltaHow to install
- Create the file:
mkdir -p ~/.zsh && touch ~/.zsh/aliases.zsh-
Paste the aliases above into
~/.zsh/aliases.zsh. -
Source it from your
~/.zshrcby adding this line:
source ~/.zsh/aliases.zsh- Reload your shell:
source ~/.zshrc