From startup to shutdown - optimized daily patterns
# Open Alacritty (GPU-accelerated terminal)
# Theme automatically matches system appearance
# Check for existing sessions
tmux ls
# Attach to yesterday's session
tmux a
# Or start fresh with layout
tmuxinator start main
# Update all tools and packages
update-dotfiles
# This updates:
# - Homebrew packages
# - Node.js packages
# - Python packages
# - Ruby gems
# - Rust toolchain
# - Neovim plugins
# Jump to project
z myproject
# Check git status
gs
# Or use visual git
lazygit
# 1. Ensure main is up to date
gco main && gpl
# 2. Create feature branch
gcb feature/new-widget
# or the full command
git checkout -b feature/new-widget
# 3. Open editor
v .
" Find files quickly
<leader>ff
" Search codebase
<leader>fg
" Get AI assistance
<leader>cc
" Navigate code
gd " Go to definition
K " Show documentation
<leader>ca " AI actions menu
# Run tests
npm test
# Or in Neovim
<leader>tn " Test nearest
<leader>tf " Test file
# Review changes
gd # git diff
# Stage changes
gaa # Add all
# or selective
ga file.js # Add specific
# Commit with message
gcm "feat: add new widget"
# Or the full command
git commit -m "feat: add new widget"
# Push to remote (set upstream)
gp -u origin HEAD
# Create PR
gh pr create
# Or web interface
gh pr create --web
# List PRs
gh pr list
# Checkout PR locally
gh pr checkout 123
# Review in editor
v .
<leader>gd # View diffs
# Stash current work
gst push -m "WIP: feature"
# Switch project
z other-project
# Later, return and restore
z -
gstp
# Quick switch
gco - # Previous branch
gco main # Main branch
# Interactive selection
fco # Fuzzy branch selection
# In Neovim
:wa # Write all buffers
:SessionSave # Save session
# Commit WIP if needed
gaa && gcm "WIP: end of day"
# or the one-shot alias
gwip
# Close unnecessary buffers
:BufferLineCloseOthers
# Exit Neovim
:qa
# Detach tmux (keeps running)
C-a d
# Or save and exit
tmux kill-session
# Find and edit
v $(fd -e py | fzf)
# Edit file with pattern
v $(rg -l "TODO")
# Format all Python files
fd -e py -x black
# Update all TODOs
rg -l "TODO" | xargs sed -i '' 's/TODO/FIXME/g'
# Find all TODOs
todos
# Find in specific type
rg -t py "class.*Widget"
# Interactive search
rg "pattern" | fzf
# Undo last commit
git undo
# Reset to remote
gf && git reset --hard @{upstream}
# Recover lost work
git reflog
# Find and kill
fkill
# Kill port
killport 3000
# System monitor
btop
# Reload shell
reload
# Fix permissions
sudo chown -R $(whoami) .
# Clear caches
rm -rf node_modules && npm i