Performance & System Recovery
Slow Startup
Section titled “Slow Startup”Neovim Startup
Section titled “Neovim Startup”# Profile startup timenvim --startuptime startup.logcat startup.log | sort -k2 -n
# Identify slow plugins:Lazy profileSystem Performance
Section titled “System Performance”# Check resourcestop -o cputop -o mem
# Check processesps aux | grep -E "(yabai|skhd|nvim|tmux)"
# Disk usagedf -hdu -sh ~/.local ~/.cacheMemory Issues
Section titled “Memory Issues”High Memory Usage
Section titled “High Memory Usage”# Check by processps aux | sort -k4 -nr | head -10
# Clear cachesrm -rf ~/.cache/nvimrm -rf ~/.local/share/nvim
# Restart servicesbrew services restart yabaibrew services restart skhdSwap Usage
Section titled “Swap Usage”# Check swapsysctl vm.swapusage
# Clear inactive memorysudo purgeSystem Recovery
Section titled “System Recovery”Window Manager Reset
Section titled “Window Manager Reset”# Stop all servicesbrew services stop yabaibrew services stop skhdkillall yabai skhd
# Clear cachesrm -rf ~/.cache/yabairm -rf ~/.cache/skhd
# Restartbrew services start yabaibrew services start skhdNeovim Reset
Section titled “Neovim Reset”# Backup current configmv ~/.config/nvim ~/.config/nvim.backupmv ~/.local/share/nvim ~/.local/share/nvim.backupmv ~/.cache/nvim ~/.cache/nvim.backup
# Reinstallcd ~/.dotfilesmake stow-installnvim # Plugins reinstall automaticallyTmux Reset
Section titled “Tmux Reset”# Kill all sessionstmux kill-server
# Clear pluginsrm -rf ~/.tmux/plugins
# Reinstall TPMgit clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Start new session, then prefix + I to install pluginstmux new-sessionDiagnostic Commands
Section titled “Diagnostic Commands”System Information
Section titled “System Information”sw_vers # macOS versionsystem_profiler SPHardwareDataType # Hardware infodf -h # Disk spacevm_stat # Memory usagetop -l 1 | grep "CPU usage" # CPU usageService Status
Section titled “Service Status”brew services listbrew services list | grep -E "(yabai|skhd)"ps aux | grep -E "(yabai|skhd|nvim|tmux)"Log Files
Section titled “Log Files”# Yabai logstail -f /usr/local/var/log/yabai/yabai.out.logtail -f /usr/local/var/log/yabai/yabai.err.log
# System logslog show --predicate 'process == "yabai"' --last 1h