You can also do it from the command line:

tmux new -d\; neww 'exec foo2'\; neww 'exec foo3'\; attach

Although in this case would probably want something like:

smail() {
        tmux attach -tmail 2>/dev/null || \
        tmux new -dsmail\; neww 'exec mutt blah'\; neww 'exec foo3'\; attach
}


On Wed, Jan 20, 2010 at 10:45:27PM +0000, Thomas Adam wrote:
> On Wed, Jan 20, 2010 at 11:39:40PM +0100, Michel Le Cocq wrote:
> > With my old screen I had an alias :
> > smail wich launch screen with a special .screenrc like this :
> > 
> > screen -t boiteA mutt -F $HOME/.mutt/config/.muttrc_A
> > screen -t boiteB mutt -F $HOME/.mutt/config/.muttrc_B
> > screen -t BoiteC mutt -F $HOME/.mutt/config/.muttrc_C
> > screen -t sync offlineimap
> > 
> > How can I did this with tmux ?
> 
> neww -d -nfoo 'exec foo'
> neww -d -nfoo2 'exec foo2'
> neww -d -nfoo3 'exec foo3'
> 
> You can also set the session name as well, etc.
> 
> -- Thomas Adam
> 
> -- 
> "It was the cruelest game I've ever played and it's played inside my head."
> -- "Hush The Warmth", Gorky's Zygotic Mynci.
> 
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to