You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work on several different machines. I like to make sure that I know which one I'm looking at. I use Linux.
With some other terminal, I have a script for each machine something like this:
xdotool key --clearmodifiers shift+F10 r 2
ssh -t badboy tmux new -As0
And that switches the terminal to a different color profile (and the connects to the machine and to tmux). I use a separate window for each host and then tmux on each of those.
I would like some way to change the color of the terminal (and the color of the tab) depending on which machine I'm on. I think what I might most like is a way to have the prompt do it. Then, I can just update a shared .bash_aliases to apply it to all my machines.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I work on several different machines. I like to make sure that I know which one I'm looking at. I use Linux.
With some other terminal, I have a script for each machine something like this:
And that switches the terminal to a different color profile (and the connects to the machine and to tmux). I use a separate window for each host and then tmux on each of those.
I would like some way to change the color of the terminal (and the color of the tab) depending on which machine I'm on. I think what I might most like is a way to have the prompt do it. Then, I can just update a shared .bash_aliases to apply it to all my machines.
Beta Was this translation helpful? Give feedback.
All reactions