]> git.eshelyaron.com Git - emacs.git/commitdiff
Document, how to suppress iTerm2 shell integration in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 20 Oct 2016 12:57:17 +0000 (14:57 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 20 Oct 2016 12:57:17 +0000 (14:57 +0200)
* doc/misc/tramp.texi (Frequently Asked Questions):
Suppress iTerm2 shell integration.

doc/misc/tramp.texi

index c3b54c612f0a6dd75a17ae7e716a5ac077f8aa6c..d8a2beac40599aad520bbcdd3b1bcf956ff35db4 100644 (file)
@@ -2886,8 +2886,21 @@ end
 @end group
 @end example
 
-When using WinSSHD on remote hosts, @value{tramp} do not recognize the
-strange prompt settings.
+When using WinSSHD on remote hosts, @value{tramp} does not recognize
+the strange prompt settings.
+
+A similar problem exist with the iTerm2 shell integration, which sends
+proprietary escape codes when starting a shell.  This can be
+suppressed by changing the respective integration snippet in your
+@file{~/.profile} like this:
+
+@example
+@group
+[ $TERM = "dumb" ] || \
+test -e "$@{HOME@}/.iterm2_shell_integration.bash" && \
+source "$@{HOME@}/.iterm2_shell_integration.bash"
+@end group
+@end example
 
 @item
 Echoed characters after login