Mercurial > dotfiles
changeset 529:245dd5f29592
prompt: disable some fancy bits in vscode et al
This was breaking Antigravity and other similar tools.
| author | Augie Fackler <raf@durin42.com> |
|---|---|
| date | Mon, 09 Feb 2026 13:32:40 -0500 |
| parents | 97e017743fd4 |
| children | dbb75edda2ff |
| files | .shell.d/99.prompt.zsh |
| diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.shell.d/99.prompt.zsh +++ b/.shell.d/99.prompt.zsh @@ -72,8 +72,8 @@ if [ $FANCYTYPE = "NO" ] ; then RPS1=$'[%W %t]' fi -if [[ $TERM == "dumb" ]]; then # in emacs - # for tramp to not hang, need the following. cf: +if [[ $TERM == "dumb" ]]; then + # in emacs for tramp to not hang, need the following. cf: # http://www.emacswiki.org/emacs/TrampMode unsetopt zle unsetopt prompt_cr @@ -81,6 +81,10 @@ if [[ $TERM == "dumb" ]]; then # in ema unfunction preexec PS1='$ ' RPS1='' +elif [[ "$VSCODE_INJECTION" != "" ]] ; then + # vscode forks like antigravity get super confused if we are too fancy + unfunction preexec + RPS1='' else autoload -Uz async _init_async
