Re: Hostname/Command for Window Name

2011-01-13 Thread Ben Boeckel
On Thu, Jan 13, 2011 at 12:46:55PM -0500, mbm329 wrote: > Thanks for the reply. I see what you mean, but I'm not quite sure > this carries over to another server. Indeed. I remember it from my "su -" binding which sets the title to the hostname. > When I SSH to another host, without any of the a

Re: Hostname/Command for Window Name

2011-01-13 Thread mbm329
Hi Ben, Thanks for the reply. I see what you mean, but I'm not quite sure this carries over to another server. When I SSH to another host, without any of the aforementioned PS1 setting, I just see my window name set to "ssh". So far as I can tell, in order to set the window name to the hostname

Re: Hostname/Command for Window Name

2011-01-13 Thread Ben Boeckel
mbm329 wrote: > Hello list, > > I'm trying to transition from GNU Screen to tmux. I like to have my > windows named as the host they are logged into. That is, until I run > a command. Then I like to have it named for the command I'm running. > > In GNU Screen, I accomplished this via the PS1

lock number of lines in a pane

2011-01-13 Thread Patrick Shanahan
Is there a method by which I can lock or set a minimum number of lines in a pane? I have set my tmux session: setw -g aggressive-resize on and frequently access it remotely via ssh from terminals with varing operating systems and screen sizes. I have a particular *lower* pane which contains a

Can this be done better/simpler?

2011-01-13 Thread hubert depesz lubaczewski
Hi, thanks to the help in here, and on irc, I was able to write this simple script: #!/bin/bash if tmux has -t test >/dev/null 2>&1 then exec tmux attach -t test fi tmux new-session -s test "exec tail -f /var/log/syslog/$( date '+%Y-%m-%d' )/system/ke

Re: 2 questions about working with tmux

2011-01-13 Thread hubert depesz lubaczewski
On Wed, Jan 12, 2011 at 09:32:00PM +, Nicholas Marriott wrote: > tmux new\; detach This is great. it does set the size sensibly. > rather than new -d > you can resize the panes after you've created them > tmux new -d\; splitw -d\; resizep -U 100\; resizep -D 1\; attach tried it again on tmux

Re: 2 questions about working with tmux

2011-01-13 Thread hubert depesz lubaczewski
On Wed, Jan 12, 2011 at 09:43:35PM +, Nicholas Marriott wrote: > try this, against CVS HEAD got cvs head, applied patch, but I don't know how to compile it. there is no "configure", only "configure.ac". I tried to "autoconf", but it errored out: =$ autoconf configure.ac:7: error: possibly u

Re: 2 questions about working with tmux

2011-01-13 Thread hubert depesz lubaczewski
On Wed, Jan 12, 2011 at 09:32:00PM +, Nicholas Marriott wrote: > someone else asked for a way to set the initial size but they didn't > really give a convincing use case so i didn't do it > > what you can do to get it the right size is do > > tmux new\; detach > > rather than new -d > > you