Speed demon? → Alacritty or Ghostty
Power user? → Kitty or WezTerm
macOS native? → iTerm2
Windows? → Windows Terminal
Simplicity? → Your OS default is fine!
Terminal Multiplexers
tmux Basics
Start/attach
tmux # New session
tmux new -s name # Named session
tmux attach -t name # Attach to session
tmux ls # List sessions
Prefix key: Ctrl+b (then...)
Ctrl+b c # New window
Ctrl+b n # Next window
Ctrl+b p # Previous window
Ctrl+b 0-9 # Go to window N
Ctrl+b , # Rename window
Ctrl+b & # Kill window
Recommended fonts with icons:
- JetBrains Mono Nerd Font
- FiraCode Nerd Font
- Hack Nerd Font
- MesloLGS NF (for Powerlevel10k)
Install: https://www.nerdfonts.com/
Terminal Tricks
Quick Navigation
Ctrl+a # Beginning of line
Ctrl+e # End of line
Ctrl+w # Delete word backward
Ctrl+u # Delete to beginning
Ctrl+k # Delete to end
Ctrl+y # Paste deleted text
Ctrl+r # Reverse search history
Ctrl+l # Clear screen
Job Control
Ctrl+z # Suspend process
bg # Resume in background
fg # Resume in foreground
jobs # List jobs
kill %1 # Kill job 1
Useful Shortcuts
!! # Repeat last command
!$ # Last argument
!^ # First argument
!* # All arguments
!vim # Last command starting with 'vim'
^old^new # Replace in last command