zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

Why the command display will be misplaced and repeated #635

Closed Cregin closed 2 years ago

Cregin commented 2 years ago

Why the command display will be misplaced and repeated

Cregin commented 2 years ago

psudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/Resources /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications

sudsudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"

Cregin commented 2 years ago

What I copied is sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)", press enter to become sudsudo / bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"

Cregin commented 2 years ago

It turned out that I modified the theme file. I changed the username to 😶‍🌫️emoji

~/.oh-my-zsh/themes/agnoster.zsh-theme

promptcontext() { if [[ "$USER" != "$DEFAULTUSER" || -n "$SSHCLIENT" ]]; then #promptsegment black default "%(!.%{%F{yellow}%}.)%n@%m" prompt_segment black default "😶‍🌫️" fi }