- Open config file:
nano ~/.zshrc - Add history to plugins:
plugins=(history) - Reload zsh:
source ~/.zshrc
- Move to beginning of line: Ctrl + A
- Move to end of line: Ctrl + E
- Move back one word: Option + ←
- Move forward one word: Option + →
- List navigation stack with numbers:
dirs -v - Create nested directory path and navigate:
mkdir -p ece/local-dev/src/ && cd $_ - Zsh plugins reference
- Switch to previous branch:
git checkout - - Unstage file:
git reset <file> - View git history:
git reflog --date=iso - git checkout tool
- Checkout pull request locally:
gh pr checkout <pr_number> - Explore code in browser: Replace
github.comwithgithub.dev - Create quick notes:
gist.new - Finding old commits: Browse CircleCI workflow runs!
- Duplicate line/selection: Shift + Option + ↓/↑
- Move line up/down: Option + ↑/↓
- Delete line: Cmd + Shift + K
- Insert line below: Cmd + Enter
- Insert line above: Cmd + Shift + Enter
- Add next occurrence: Cmd + D
- Select all occurrences: Cmd + Shift + L
- Add cursor above/below: Option + Cmd + ↑/↓
- Column selection (keyboard): Shift + Option + Cmd + arrows
- Go to definition: F12
- Peek definition: Option + F12
- Quick open file: Cmd + P
- Go to symbol in file: Cmd + Shift + O
- Show applied migrations:
python manage.py showmigrations <app_name> - Inspect database schema:
python manage.py inspectdb - Dump app data to JSON:
python manage.py dumpdata <app_name> > data.json - Check URLs:
python manage.py show_urls - Output models diagram:
python manage.py graph_models <app_name> -o <output_file>.png
# In data/env file
DEBUG=1
ENABLE_DEBUG_TOOLBAR=1
- Use browser developer tools: Inspect & Styles panels for debugging
- Database exploration with ERDs (more customisable than editor db explorers): DBeaver
- Mermaid
- Excalidraw