Inverso em negrito% no prompt zsh

0

Isso é menor, mas está me enlouquecendo.

Meu prompt é seguido por um% em negrito invertido assim:

link

Eu quero que isso desapareça.

Estou usando: zsh com oh-my-zsh no iterm2

O que tentei:

Eu encontrei este e de acordo com a resposta aceita, isso é causado pelo PROPMT_SP, conforme explicado no manual do zsh:

Attempt to preserve a partial line (i.e. a line that did not end with a newline) that would otherwise be covered up by the command prompt due to the PROMPT_CR option. This works by outputting some cursor-control characters, including a series of spaces, that should make the terminal wrap to the next line when a partial line is present (note that this is only successful if your terminal has automatic margins, which is typical).

When a partial line is preserved, by default you will see an inverse+bold character at the end of the partial line: a % for a normal user or a # for root. If set, the shell parameter PROMPT_EOL_MARK can be used to customize how the end of partial lines are shown.

Seguindo a resposta aceita, entrei no terminal:

unsetopt PROMPT_SP

e reiniciado. Isso não funcionou, então continuei tentando:

setopt PROMPT_CR
setopt PROMPT_SP
export PROMPT_EOL_MARK=""

e reiniciado. Isso não funcionou, então eu adicionei

setopt PROMPT_CR
setopt PROMPT_SP
export PROMPT_EOL_MARK=""

no meu ~ / .zshrc e reiniciado isso não funcionou.

Indo para a outra resposta: A outra resposta sugeriu adicioná-las ao seu tema .zsh selecionado e adicionar as linhas acima. Eu não tinha um selecionado e de acordo com este o tema padrão é robbyrussell.zsh-theme, então eu adicionei as linhas acima em ~ / .oh-my-zsh / themes / robbyrussell.zsh-theme e isso não funcionou. Eu apaguei essas linhas e mudei o tema em meu ~ / .zshrc para blinks.zsh-theme e adicionei as linhas acima em ~ / .oh-my-zsh / themes / blinks.zsh-theme e reiniciei e isso não funcionou .

Depois que tudo isso não funcionou, procurei novamente no Google e encontrei apenas this que foi mais das mesmas soluções que não funcionaram até agora para mim.

O que estou fazendo de errado?

    
por Diego 17.11.2017 / 07:42

0 respostas