0

①I have tried to use an dynamic clock with time refresh settings in ~/.zshrc

TMOUT=1
TRAPALRM () 
{ zle reset-prompt }

②my full modified theme file is bullet-train.zsh-theme my whole ~/.zshrc file is.zshrc


My problem is: when my terminal enter into a git repository,

the command line will jump to the next line automatically.

the jump behavior is like this: enter image description here

when I change the name of .git to .git__xx folder. then jump behaviorstop

I swear that I did not press Enter, the terminal jump to the next line automatically. I guess it's caused by Anaconda and the time refresh settings in ~/.zshrc

The phenomenon is recorded in here


Did I press Enter deliberately and post this question to waste others' time?

No,here's the effect if I press Enterto make command line jump to the next line

enter image description here


some unproper solution:

delete git part in theme file bullet-train.zsh-theme.

Then the phenomenon disappear,but the git display function is also disabled.


Could you tell me how to solve this bug? Thanks for your help.

  • 1
    I'm not sure `zsh` supports rewriting an existing prompt in the way you want. What do you mean by "time flush" settings? – chepner Jul 12 '20 at 16:02
  • Thanks for your replies,it's my bad,I misremember that word, and I post a new link about this phenomenon.Thanks for your help. –  Jul 13 '20 at 02:13

0 Answers0