Created
March 9, 2026 11:11
-
-
Save soderlind/e2c51d21f0c18d3ef75fd93088a73ddb to your computer and use it in GitHub Desktop.
.zshrc with less noise in VSCode Copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ── Oh My Zsh ──────────────────────────────────────────────── | |
| export ZSH="$HOME/.oh-my-zsh" | |
| IS_VSCODE=$([[ "$TERM_PROGRAM" == "vscode" ]] && echo true || echo false) | |
| if [[ "$IS_VSCODE" == "true" ]]; then | |
| ZSH_THEME="" | |
| # Reduce title/prompt noise before Oh My Zsh initializes. | |
| DISABLE_AUTO_TITLE=true | |
| COMPLETION_WAITING_DOTS=false | |
| DISABLE_UNTRACKED_FILES_DIRTY=true | |
| else | |
| ZSH_THEME="af-magic" | |
| fi | |
| plugins=(brew gh npm nvm wp-cli yarn) | |
| # Load direnv only inside VS Code, I use it for: https://gist.github.com/soderlind/a470af7652a61ee07e302ea815d786df | |
| if [[ "$IS_VSCODE" == "true" ]]; then | |
| plugins+=(direnv) | |
| fi | |
| source "$ZSH/oh-my-zsh.sh" | |
| # ── Your tweeks, Aliases etc ──────────────────────────────── | |
| # ── VS Code / GitHub Copilot ──────────────────────────────── | |
| if [[ "$IS_VSCODE" == "true" ]]; then | |
| # Minimal prompt for cleaner Copilot parsing | |
| PROMPT='%~ » ' | |
| RPROMPT='' | |
| # Shell integration lets VS Code track command boundaries | |
| . "$(code --locate-shell-integration-path zsh)" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment