Essential commands and shortcuts for daily development workflow.
🚀 Emergency Commands
killall yabai skhd && brew services restart yabai && brew services restart skhd
/Applications/Ghostty.app/Contents/MacOS/ghostty
tmux kill-server && tmux new-session
⌨️ Essential Shortcuts
Global (SKHD)
| Key | Action | Key | Action |
|---|
meh + a | Ghostty | meh + s | Arc Browser |
meh + w | Windsurf | meh + x | VSCode |
meh + d | DBeaver | meh + u | Claude |
ctrl+shift+hjkl | Focus Window | cmd+shift+hjkl | Move Window |
hyper + hjkl | Resize Window | hyper + f | Fullscreen |
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 + r | Reload Config | C-x + a | Zoom Pane |
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)
| Key | Action | Key | Action |
|---|
<Tab> | Accept/Tab | <C-;> | Accept Full |
<C-'> | Accept Word | <C-]> | Accept Line |
<C-[> | Previous | <C-\> | Next |
🔧 Common Commands
Service Management
tmux source-file ~/.tmux.conf
Project Management
tmux new-session -s project -c ~/path/to/project
tmux attach-session -t project
<leader>aa # Actions menu
# Copilot (ergonomic keybindings)
Tab # Accept suggestion or normal tab
C-; # Accept full suggestion
<leader>Dd # Select miudb connection
<leader>Dl # List miudb connections
<leader>Dq # Run current SQL buffer
<leader>j # Run current SQL buffer
<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
~/.config/nvim/ # Neovim config
~/.config/yabai/ # Yabai config
~/.config/skhd/ # SKHD config
~/.config/atuin/ # Atuin config
~/.tmux.conf # Tmux config
~/.dotfiles/dotfiles/ # All configurations
/usr/local/var/log/yabai/
~/.local/share/atuin/ # Atuin history database
🔍 Diagnostic Commands
brew services list | grep -E "(yabai|skhd)"
ps aux | grep -E "(yabai|skhd|nvim|tmux)"
tail -f /usr/local/var/log/yabai/yabai.err.log
tail -f /usr/local/var/log/skhd/skhd.err.log
🛠️ Installation Commands
git clone https://github.com/vanducng/dotfiles.git ~/.dotfiles
:Copilot auth # GitHub Copilot
export OPENAI_API_KEY="..." # CodeCompanion
ps aux | sort -k4 -nr | head -10 # Memory usage
ps aux | sort -k3 -nr | head -10 # CPU usage
nvim --startuptime startup.log
🔄 Backup & Recovery
tar -czf ~/dotfiles-backup-$(date +%Y%m%d).tar.gz ~/.dotfiles
rm -rf ~/.config/nvim ~/.local/share/nvim ~/.cache/nvim
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
🎯 Workflow Patterns
Daily Startup
1. C-x + t # Select main project
3. <leader>Dd # Open database if needed
4. <leader>ac # Start AI chat if needed
Code Review
2. <leader>ar # AI review
3. <leader>af # Apply fixes
Project Switch
1. C-x + t # Project sessionizer
3. Enter # Switch to project
Database Work
1. <leader>Dd # Select miudb connection
4. <leader>j # Execute buffer
🔗 Quick Links