I have a simple .bashrc file at the moment that allows me to always open the same terminal (reopen, actually) running tmux. The important part is shown below.
The essence of this is that when you execute tmux attach -d you disconnect any tmux session that is running, effectively closing the terminal window that is open (since I opened it with the tmuxcommand).
I am new to using tmux in scripting and I am attempting to manipulate it so when I run a script I can have multiple screens attached and split in my Putty session, and also have it color coded and binded so that if I use ALT+arrow key it will switch to the next pane.
I'm trying to make a pretty nice desktop console which can show system logs from /dev/logi . The device displays new content from several files in /var/log . I want to use urxvt and tmux to do so. Everything seems to be working, but I have no idea how to autostart it.
I am experimenting with tmux. I have run into a behaviour that I would like
to change. Idf I connect to a single host multiple times via tmux, when I
exit one tmux window then all the windows report their session closed.