Quick Reference Guide
Essential commands and shortcuts for daily development workflow.
🚀 Emergency Commands
Section titled “🚀 Emergency Commands”# Window manager brokekillall yabai skhd && brew services restart yabai && brew services restart skhd
# Terminal broke/Applications/Ghostty.app/Contents/MacOS/ghostty
# Tmux unresponsivetmux kill-server && tmux new-session
# Neovim stuck:qa! # or pkill nvim⌨️ Essential Shortcuts
Section titled “⌨️ Essential Shortcuts”Global (SKHD)
Section titled “Global (SKHD)”| Key | Action | Key | Action |
|---|---|---|---|
meh + a | Ghostty | meh + s | Dia |
meh + f | Kitty | meh + g | Cursor |
meh + t | Discord | meh + x | ChatGPT |
meh + v | tldraw offline | ||
ctrl+shift+hjkl | Focus Window | cmd+shift+h/l | Move Window |
hyper + arrows | Resize Window | hyper + f | Fullscreen |
Tmux (Prefix: C-x)
Section titled “Tmux (Prefix: C-x)”| Key | Action | Key | Action |
|---|---|---|---|
C-x + t | Project Sessionizer | C-x + m | Split Horizontal |
C-x + v | Split Vertical | C-x + hjkl | Navigate Panes |
C-x + Space | Last Window | C-x + c | New Window |
C-x + Tab | Tmux Fingers | C-x + a | Zoom Pane |
C-x + r | Reload Config | C-x + i | Show Pane Numbers |
Herdr (Prefix: C-x)
Section titled “Herdr (Prefix: C-x)”| Key | Action | Key | Action |
|---|---|---|---|
C-x + m | Split Right | C-x + v | Split Down |
Ctrl-Alt-hjkl | Navigate Panes | C-x + Space | Previous Tab |
C-x + Shift-Left/Right | Previous/Next Workspace | Ctrl-Shift-1..9 | Switch Workspace |
C-x + Shift-Up/Down | Previous/Next Agent | C-x + Ctrl-Shift-1..9 | Focus Agent |
C-x + Tab | Pick Recent Target | C-x + a | Last Pane |
C-x + f | Agent Address Picker | C-x + g | Session Navigator |
C-x + c | New Tab | Ctrl-1..9 | Switch Tab |
C-x + r | Reload Config | C-x + R | Resize Mode |
C-x + ? | Key Help |
Neovim
Section titled “Neovim”| Key | Action | Key | Action |
|---|---|---|---|
<C-f> | Project Sessionizer | - | File Manager |
<leader>ac | AI Chat | <leader>aa | AI Actions |
<leader>Dd | Database Explorer | <leader>ff | Find Files |
<leader>gg | Lazygit | gd | Go to Definition |
AI Completion (Copilot)
Section titled “AI Completion (Copilot)”| Key | Action | Key | Action |
|---|---|---|---|
<Tab> | Accept/Tab | <C-;> | Accept Full |
<C-'> | Accept Word | <C-]> | Accept Line |
<C-[> | Previous | <C-\> | Next |
🔧 Common Commands
Section titled “🔧 Common Commands”Service Management
Section titled “Service Management”# Restart window managerskhd --restart-serviceyabai --restart-service
# Reload configurationstmux source-file ~/.tmux.confherdr server reload-configsource ~/.zshrc
# Update plugins:Lazy sync # Neovimprefix + I # TmuxProject Management
Section titled “Project Management”# Quick project switchC-x + t # From tmuxC-f # From Neovim
# New project sessiontmux new-session -s project -c ~/path/to/project
# Attach to sessiontmux attach-session -t projectAI Tools
Section titled “AI Tools”# CodeCompanion<leader>ac # Open chat<leader>aa # Actions menu<leader>ar # Code review
# Copilot (ergonomic keybindings):Copilot status:Copilot enableTab # Accept suggestion or normal tabC-; # Accept full suggestionC-' # Accept wordC-] # Accept line
# Database AI<leader>Dd # Select miudb connection<leader>Dl # List miudb connections<leader>Dq # Run current SQL buffer<leader>j # Run current SQL buffer
# Focus & Zen Mode<leader>z # Zen mode (70% width)<leader>Z # Full screen zen mode<leader>zx # Exit zen mode (all tmux panes)<leader>tt # Toggle twilight📁 Important Paths
Section titled “📁 Important Paths”# Configuration files~/.config/nvim/ # Neovim config~/.config/yabai/ # Yabai config~/.config/skhd/ # SKHD config~/.config/atuin/ # Atuin config~/.config/herdr/ # Herdr config and local runtime state~/.tmux.conf # Tmux config~/.zshrc # Zsh config
# Dotfiles~/.dotfiles/dotfiles/ # All configurations
# Logs/usr/local/var/log/yabai//usr/local/var/log/skhd/
# Cache & Data~/.cache/nvim/~/.local/share/nvim/~/.local/share/atuin/ # Atuin history database🔍 Diagnostic Commands
Section titled “🔍 Diagnostic Commands”# Check service statusbrew services list | grep -E "(yabai|skhd)"ps aux | grep -E "(yabai|skhd|nvim|tmux)"
# Check health:checkhealth # Neovimtmux info # Tmuxherdr status # Herdr client and server
# View logstail -f /usr/local/var/log/yabai/yabai.err.logtail -f /usr/local/var/log/skhd/skhd.err.log🛠️ Installation Commands
Section titled “🛠️ Installation Commands”# Install prerequisitesbrew install git stow mise
# Install dotfiles and managed toolsgit clone https://github.com/vanducng/dotfiles.git ~/.dotfilescd ~/.dotfiles./scripts/macos-deps.shmake stow-installmise installmise exec -- herdr --version
# Setup AI tools:Copilot auth # GitHub Copilotexport OPENAI_API_KEY="..." # CodeCompanion📊 Performance Monitoring
Section titled “📊 Performance Monitoring”# System resourcestop -o cputop -o memdf -h
# Process monitoringps aux | sort -k4 -nr | head -10 # Memory usageps aux | sort -k3 -nr | head -10 # CPU usage
# Neovim performance:Lazy profilenvim --startuptime startup.log🔄 Backup & Recovery
Section titled “🔄 Backup & Recovery”# Backup configurationstar -czf ~/dotfiles-backup-$(date +%Y%m%d).tar.gz ~/.dotfiles
# Reset Neovimrm -rf ~/.config/nvim ~/.local/share/nvim ~/.cache/nvimmake stow-install
# Reset tmuxtmux kill-serverrm -rf ~/.tmux/pluginsgit clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm🎯 Workflow Patterns
Section titled “🎯 Workflow Patterns”Daily Startup
Section titled “Daily Startup”1. C-x + t # Select main project2. nvim # Open editor3. <leader>Dd # Open database if needed4. <leader>ac # Start AI chat if neededCode Review
Section titled “Code Review”1. Select code2. <leader>ar # AI review3. <leader>af # Apply fixes4. :w # Save changesProject Switch
Section titled “Project Switch”1. C-x + t # Project sessionizer2. Type project name3. Enter # Switch to projectDatabase Work
Section titled “Database Work”1. <leader>Dd # Select miudb connection2. Open a .sql file3. Write SQL query4. <leader>j # Execute buffer