I use a bash script to start gnome-terminal with multiple tabs, each tab using a different profile, working directory, and in some cases executing a command within the tab.
In this situation, I'd like for the up arrow key to retrieve commands that were used in a specific tab. Is this possible?
I suppose you can use a gnome-terminal custom command for each profile, for example
or
or similar.
Then in
~/.bashrc
As long as the
tty
command gives you separate results (which it certainly should in any standard Unix environment, though I've had occasional misbehaviors in cygwin with certain terminal emulators), you could use that to separate things, as well.I have something like the following in my
.bashrc
:Which may seem like overkill, but you get the idea. It splits it out out based on
And you could add even more if you think of things that are relevant to you.