Quick Reference - lars-hagen/dotfiles GitHub Wiki
A quick reference for common commands and workflows in this development environment.
z <fuzzy> # Jump to frequently used directory
cd - # Go to previous directoryeza # Modern ls with icons and git status
eza -l # Detailed list view
eza -T # Tree view
bat <file> # View file with syntax highlightingCtrl-T # Fuzzy find files (fzf)
Ctrl-R # Search command history
Alt-C # Fuzzy find and cd into directoryg s # git status
g c # git commit
g p # git push
g l # git log (pretty format)
g a # git add
g aa # git add --all (stage all changes)
g ap # git add -p (interactive staging)
g au # git add -u (stage modified and deleted)assume <role> # Switch AWS role
granted # Launch AWS console-
Ctrl-/: Toggle preview in fzf -
Ctrl-L: Trigger Shell-GPT assistance -
Tab: Smart completion with fzf-tab -
Ctrl-Space: Accept zsh autosuggestion
-
Cmd-1..9: Switch to workspace -
Cmd-Shift-1..9: Move window to workspace -
Cmd-H/L: Focus left/right window -
Cmd-J/K: Focus up/down window
tf # terraform
tfi # terraform init
tfp # terraform plan
tfa # terraform apply
tfd # terraform destroy
tfo # terraform output
tfw # terraform workspaced ps # List containers
d up # Start containers
d down # Stop containersbrew bundle # Install/update all packages
brew update # Update Homebrew
brew upgrade # Upgrade all packagestoggle_mode # Switch between work/personal modeworkon <env> # Activate virtual environment
workoff # Deactivate current virtual environment
mkvenv # Create new virtual environment
rmvenv # Remove virtual environment (deactivates first)temp_script # Open vim to create/edit temporary scripttreegithub # Show repository structureman <command> # View manual
tldr <command> # Quick command examples
sgpt "how to..." # Ask AI assistantdotfiles-update-brew-wiki # Update package documentation- Use
Ctrl-Rwith fuzzy search for command history - Leverage Shell-GPT (
Ctrl-L) for command help - Use
zwith fuzzy matching for quick directory jumps - Tab completion shows previews with fzf-tab
- Personal mode (
toggle_mode) keeps work/personal history separate
# Update dotfiles
cd ~/dotfiles
git pull
./install.sh
# Update packages
brew update && brew upgrade
brew bundle
# Update Shell-GPT
pipx upgrade shell-gpt