# HG changeset patch # User Augie Fackler # Date 1770661960 18000 # Node ID 245dd5f2959266a43ed0c14ff08ae223b6fa583a # Parent 97e017743fd42274c48e2b17e446b702bf33fc5d prompt: disable some fancy bits in vscode et al This was breaking Antigravity and other similar tools. diff --git a/.shell.d/99.prompt.zsh b/.shell.d/99.prompt.zsh --- 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