<p>How do I execute a command every time after ssh'ing from one machine to another?</p>

<p>e.g</p>

<pre><code>ssh mymachine
stty erase ^H
</code></pre>

<p>I'd rather just have "stty erase ^H" execute every time after my ssh connection completes.</p>

<p>This command can't simply go into my .zshrc file.  i.e. for local sessions, I can't run the command (it screws up my keybindings).  But I need it run for my remote sessions.</p>

Assuming a linux target, put it in your
```
.profile
```