after reset-prompt,the command line jump to next line automatically

383 Views Asked by At

①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.

0

There are 0 best solutions below