
O iTerm possui um script de integração de shell que permite alguns recursos sofisticados, como a capacidade de rolar até o último prompt (no caso de haver muito stdout, ou seja, ao compilar algum código). No entanto, se o terminal não for o iTerm, esse script de shell falhará e poluirá o prompt.
Estou tentando limpá-lo, pois só executarei a integração do shell se o terminal for iTerm.
Responder1
Colocar isso em seu ~/.config/fish/config.fish deve resolver o problema
if test $TERM_PROGRAM = iTerm.app
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
end
Responder2
Colocar isso no seu ~/.config/fish/config.fish
deve resolvereverifique se $TERM_PROGRAM
foi definido.
test -n "$TERM_PROGRAM"
and test $TERM_PROGRAM = iTerm.app
and test -e {$HOME}/.iterm2_shell_integration.fish
and source {$HOME}/.iterm2_shell_integration.fish