Emacs tramp how to avoid bash_profile

Each time I visit the file system on a remote computer and I execute a command (for example grep), the emacs buffer with the result of this command also contains my verbose output .bash_profile.

How can I disable this behavior? That is, how to make the remote command load only .bashrc? (In tramp, my remote method is ssh)

+3
source share
1 answer

I suggest moving everything to your .bash_profile, which prints the text at the end of the file and puts the following before these commands:

If [ "$TERM" == "dumb" ]; then
     return
fi

That should do it. Reread http://www.gnu.org/software/tramp/#Remote-shell-setup for more information.

+5

All Articles