fish shell integration breaks sftp
I can't sftp into a computer once I have activated shell integration in fish. The error I see is the one described here:
http://www.snailbook.com/faq/sftp-corruption.auto.html
Basically, the shell shouldn't be printing things out when the shell is not interactive. I'm not sure how to do this in fish (or if the same problem exists in other shells)
I can get sftp to work by commenting out the last two lines:
iterm2_precmd
printf "\033]1337;ShellIntegrationVersion=1\007"