Homebrew Cheatsheet

Homebrew Itself
brew --versionInstalled version of Homebrew
brew configFull config: version, paths, macOS version
brew doctorDiagnose potential issues
brew updateFetch latest Homebrew & package definitions
brew cleanupRemove old versions and cached downloads
All Packages
brew upgradeUpgrade all outdated packages
brew outdatedShow packages with updates available
brew autoremoveRemove all unused dependencies
brew listList all installed packages
brew list --caskList all installed casks
Individual Packages
brew install <pkg>Install a package
brew uninstall <pkg>Remove a package
brew reinstall <pkg>Reinstall a package
brew upgrade <pkg>Upgrade a specific package
brew info <pkg>Show details about a package
brew install --cask <app>Install a GUI app
brew services start/stop/restartManage a package's service

Git Cheatsheet

Start & Commit
git initCreate a new repository
git clone <url>Clone an existing repository
git statusShow working tree status
git add <file>Stage changes
git commit -m "msg"Commit staged changes
git log --onelineCompact commit history
Branch & Sync
git branchList branches
git switch -c <name>Create & switch to branch
git merge <branch>Merge a branch into current
git pullFetch & merge from remote
git pushPush commits to remote
git restore <file>Discard uncommitted changes

Vim Cheatsheet

Modes & Movement
iInsert before cursor
EscReturn to normal mode
h j k lLeft, down, up, right
w / bNext / previous word
gg / GTop / bottom of file
/textSearch for text
Edit & Save
ddDelete (cut) line
yyYank (copy) line
pPaste after cursor
uUndo
:wSave file
:wqSave and quit
:q!Quit without saving

SSH Cheatsheet

Connect & Keys
ssh user@hostConnect to a host
ssh -p <port> user@hostConnect on a specific port
ssh -i <key> user@hostConnect with an identity file
ssh-keygen -t ed25519Generate a new key pair
ssh-copy-id user@hostInstall your public key on a host
Transfer & Config
scp <file> user@host:<path>Copy a file to a host
scp user@host:<path> <file>Copy a file from a host
~/.ssh/configPer-host settings file
ssh -v user@hostVerbose output for debugging

Zsh Cheatsheet

Navigation
cd -Go to previous directory
cd ~2Jump to 2nd entry in dir stack
dirs -vShow directory stack with indices
pushd / popdPush / pop directory stack
z <name>Jump to frecent directory (zoxide)
History
Ctrl+RFuzzy search history
!!Repeat last command
!$Last argument of previous command
!*All arguments of previous command
history 1Show full history from the start
Editing & Shortcuts
Ctrl+A / Ctrl+EMove to start / end of line
Ctrl+WDelete word before cursor
Ctrl+UDelete to start of line
Ctrl+LClear screen
Alt+.Insert last argument of prev command
Globbing & Expansion
**/*.jsRecursive glob (all .js files)
ls *(.) List only regular files
ls *(/)List only directories
{a,b,c}.txtBrace expansion
echo $((2 ** 10))Arithmetic expansion