Mercurial > dotfiles
comparison .shell.d/99.prompt.zsh @ 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 | e69d3e15b1b7 |
| children |
comparison
equal
deleted
inserted
replaced
| 528:97e017743fd4 | 529:245dd5f29592 |
|---|---|
| 70 if [ $FANCYTYPE = "NO" ] ; then | 70 if [ $FANCYTYPE = "NO" ] ; then |
| 71 prompt='[%m:%3~] %n%# ' | 71 prompt='[%m:%3~] %n%# ' |
| 72 RPS1=$'[%W %t]' | 72 RPS1=$'[%W %t]' |
| 73 fi | 73 fi |
| 74 | 74 |
| 75 if [[ $TERM == "dumb" ]]; then # in emacs | 75 if [[ $TERM == "dumb" ]]; then |
| 76 # for tramp to not hang, need the following. cf: | 76 # in emacs for tramp to not hang, need the following. cf: |
| 77 # http://www.emacswiki.org/emacs/TrampMode | 77 # http://www.emacswiki.org/emacs/TrampMode |
| 78 unsetopt zle | 78 unsetopt zle |
| 79 unsetopt prompt_cr | 79 unsetopt prompt_cr |
| 80 unsetopt prompt_subst | 80 unsetopt prompt_subst |
| 81 unfunction preexec | 81 unfunction preexec |
| 82 PS1='$ ' | 82 PS1='$ ' |
| 83 RPS1='' | |
| 84 elif [[ "$VSCODE_INJECTION" != "" ]] ; then | |
| 85 # vscode forks like antigravity get super confused if we are too fancy | |
| 86 unfunction preexec | |
| 83 RPS1='' | 87 RPS1='' |
| 84 else | 88 else |
| 85 autoload -Uz async | 89 autoload -Uz async |
| 86 _init_async | 90 _init_async |
| 87 function precmd () { | 91 function precmd () { |
