| Built-in | Replace / add | Why it’s worth it |
|---|---|---|
ls | eza | Better file listing |
cat | bat | Better file preview with syntax highlighting |
grep | ripgrep / rg | Much faster text search |
find | fd | Simpler file search |
cd | zoxide | Smarter directory jumping |
top | btop | Better process/system monitor |
history | atuin | Better searchable shell history ❌ |
rm | trash | Safer delete to macOS Trash |
man | tldr | Quick command examples |
git diff | delta | Better Git diffs |
Table Dervied from ChatGPT. I only install those that I like.
Check
If I’m going to live in the terminal (which I am), I like to have the best tools.
- zoxide - A smarter cd command
- exa terminal
- bat A cat(1) clone with wings.
- ripgrep - recursive regex search
I’m not in the mood of setting these up. So I do them all in once.
ChatGPT.
Here are clean configs for exactly these tools:
brew install eza bat ripgrep fd zoxide btop trash tldr git-deltaAdd this to ~/.zshrc
cat >> ~/.zshrc <<'EOF'
# ------------------------------------------------------------
# Modern CLI replacements
# ------------------------------------------------------------
# eza: better ls
alias ls='eza --group-directories-first'
alias ll='eza -lh --git --group-directories-first'
alias la='eza -lah --git --group-directories-first'
alias lt='eza --tree --level=2 --group-directories-first'
# bat: better cat
alias cat='bat'
alias less='bat --paging=always'
# ripgrep: better grep
alias grep='rg'
# fd: better find
alias find='fd'
# zoxide: smarter cd
eval "$(zoxide init zsh --cmd cd)"
# btop: better top
alias top='btop'
# trash: safer rm
alias rm='trash'
alias del='trash'
# tldr: simpler man pages
alias man='tldr'
EOFThen reload:
source ~/.zshrcConfigure git-delta
git config --global core.pager delta
git config --global interactive.diffFilter "delta --color-only"
git config --global delta.navigate true
git config --global delta.side-by-side true
git config --global delta.line-numbers true
git config --global merge.conflictstyle zdiff3Configure Fzf
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)Optional: configure bat theme
mkdir -p ~/.config/bat
cat > ~/.config/bat/config <<'EOF'
--theme="TwoDark"
--style="numbers,changes,header"
--paging=auto
EOFVerify everything
command -v eza
command -v bat
command -v rg
command -v fd
command -v zoxide
command -v btop
command -v atuin
command -v trash
command -v tldr
command -v deltaTest replacements
ls
ll
cat ~/.zshrc
grep alias ~/.zshrc
find zshrc ~
cd Documents
top
man ls
atuin searchUse the original macOS commands with command:
command ls
command cat ~/.zshrc
command grep alias ~/.zshrc
command find ~ -name ".zshrc"
command rm file.txt
command man ls