Built-inReplace / addWhy it’s worth it
lsezaBetter file listing
catbatBetter file preview with syntax highlighting
grepripgrep / rgMuch faster text search
findfdSimpler file search
cdzoxideSmarter directory jumping
topbtopBetter process/system monitor
historyatuinBetter searchable shell history ❌
rmtrashSafer delete to macOS Trash
mantldrQuick command examples
git diffdeltaBetter 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.

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-delta

Add 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'
 
EOF

Then reload:

source ~/.zshrc

Configure 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 zdiff3

Configure 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
EOF

Verify 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 delta

Test replacements

ls
ll
cat ~/.zshrc
grep alias ~/.zshrc
find zshrc ~
cd Documents
top
man ls
atuin search

Use 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

github
mac
Softwares I install
terminal