![]() Select the profile and click Edit Profiles. You can assign a profile (say a remote profile) with a different preset than your default preset by going to: I had this same wish and found this can be accomplished in iTerm 2 (Build 1.0319) in the application's preferences. Note: it didn't work for me until I created a profile specifically for the desktop instead of using the default profile. You can combine this solution with answer seamlessly. Now, if you ssh into the remote machine, your profile will change, and if you exit out of the ssh session, you will be back to your local profile.Add the hostname of the remote machine in Automatic Profile Switching.Create another profile, this time for your remote machine, and customize it.It is not always the one you see in your prompt. ![]() The hostname is the one you get when running echo $HOST on the target machine. In Automatic Profile Switching, click '+' and add the hostname of your local machine.Go to the Advanced tab and scroll to the bottom.Customize it to fit your needs (change background color, name, etc) Create a new profile for your local machine.It will download a script with curl and install it. Log in to your remote machine via ssh and click iTerm2 (the app menu) > Install Shell Integration. ![]() The latest iTerm2 nightly (Build 0329-nightly at the time of writing) allows you to do that easily.
0 Comments
Leave a Reply. |