
iTerm tiene un script de integración de shell que habilita algunas características sofisticadas, como tener la capacidad de desplazarse hasta el último mensaje (en caso de que haya muchas salidas estándar, es decir, al compilar algún código). Sin embargo, si el terminal no es iTerm, ese script de shell falla y contamina el mensaje.
Estoy tratando de limpiarlo porque solo ejecuto la integración del shell si el terminal es iTerm.
Respuesta1
Poner esto en tu ~/.config/fish/config.fish debería funcionar
if test $TERM_PROGRAM = iTerm.app
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
end
Respuesta2
Poner esto en tu ~/.config/fish/config.fish
debería funcionar.ycomprobar que $TERM_PROGRAM
se haya configurado.
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