60 tips

Type a directory name and press Enter to cd into it (AUTO_CD)

Navigation

Use .. / ... / .... to go up 1/2/3 levels quickly

Navigation

Use - to go back to your previous directory

Navigation

Use pushd/popd and dirs -v for directory stack navigation

Navigation

Use cd ~1 after dirs -v to jump back through your directory stack

Navigation

Run ll for a long listing with hidden files and readable sizes

Navigation

Run lt for a tree view up to 3 levels deep

Navigation

Run glog for a visual git graph of the last 20 commits

Git

Run gpr to pull with rebase for a cleaner history

Git

Run gun to undo your last commit while keeping changes staged

Git

Run gcount to see who contributed the most commits

Git

Run croot to jump to the root of the current git repo

Git

Run fbr to fuzzy-pick and checkout a git branch from local or remote refs

Git

Use gs, gd, ga, gaa, gco, gb for quick git operations when the OMZ git plugin is enabled

Git

Use ff <name> to find files by name recursively

Search & Process

Use ft <text> to search for text inside files (uses ripgrep if available)

Search & Process

Use ft TODO to quickly find TODO comments in your code

Search & Process

ff <pattern> [path] uses fd or fdfind when available for faster searches

Search & Process

Run extract <archive> to unpack a supported archive

Utility

Run mkcd <dir> to create a directory and cd into it in one step

Utility

Run path to print each PATH entry on its own line

Utility

Run dusage to see the largest items in the current directory

Utility

Run bigfiles to find the largest files recursively in the tree

Utility

Run dusage [path] [count] to summarize any directory with a custom limit

Utility

Run bigfiles [path] [count] to inspect any tree with a custom limit

Utility

Run fkill to fuzzy select and kill a process

Search & Process

Run fkill 15 to send SIGTERM and select multiple processes

Search & Process

Run ports to see all listening ports and their processes

Network

Run myip to check your public IP address over HTTPS

Network

Run weather to get a quick forecast over HTTPS

Network

Run peek <file> to preview a file quickly

Utility

Run headers <url> to follow redirects and print response headers

Network

Use global alias G anywhere: git log G fix pipes to grep

Pipe Aliases

Use global alias L anywhere: cat file.txt L pipes to less

Pipe Aliases

Use global alias W anywhere: ps aux W counts lines

Pipe Aliases

Use global alias NE anywhere: command NE suppresses errors

Pipe Aliases

Use global alias NUL anywhere: noisy-command NUL silences stdout and stderr

Pipe Aliases

Combine globals: git log G fix W counts commits mentioning fix

Pipe Aliases

Use **/*.ext for recursive glob matching (EXTENDED_GLOB)

Globbing

* includes dotfiles because GLOB_DOTS is enabled

Globbing

Use *(.m-1) to glob files modified in the last day

Globbing

file2 sorts before file10 because NUMERIC_GLOB_SORT is enabled

Globbing

History is shared across all open terminal sessions

History

Ctrl+R history search skips duplicate commands

History

Commands starting with a space are omitted from history (HIST_IGNORE_SPACE)

History

Command spell-correction prompts are intentionally disabled

Shell Behavior

Tab completion is case-insensitive for names and paths

Shell Behavior

Use z <pattern> to jump to directories zoxide remembers

FZF & Zoxide

Use zi for an interactive zoxide directory picker

FZF & Zoxide

Press Ctrl+R to fuzzy search your command history

FZF & Zoxide

Press Ctrl+T to fuzzy insert a file path at your cursor

FZF & Zoxide

Press Alt+C to fuzzy cd into a directory

FZF & Zoxide

Run npkg add bat for a short nix profile add command

Nix

Run npkg search ripgrep to search nixpkgs with package descriptions

Nix

Run npkg refresh to rebuild the cached nixpkgs picker index (requires jq)

Nix

Run npkg outdated to preview available package upgrades before running npkg upgrade

Nix

Run npkg install with no args to fuzzy-pick nixpkgs attribute names

Nix

Run npkg find nvim to seed the nix package picker with an initial query

Nix

npkg find shows description, version, and homepage in the preview pane

Nix

Run npkg remove with no args to fuzzy-select installed Nix packages to uninstall

Nix