You can probably reuse the same config by doing eg "tmux source ~/.tmux.conf \; attach" but not certain it'll always do what you want...
On Mon, Sep 12, 2011 at 11:21:51AM -0400, Eric Eric wrote: > Vladimir, thanks for the quick response.* I added -g and that did in fact > fix the index numbering option, which is great.* Nicholas, you are > correct, I was just starting tmux with "tmux", which I was expecting to > cause it to read the configuration file (I guess I'm still thinking in > terms of screen).* So starting with attach works the first time, but > subsequent invocations of course cause tmux to attach to the current > session.* Is there a way to start multiple sessions of tmux with the > windows specified in the config file? > > I forgot to include the version info last time.* It's 1.3-2 on Linux Mint > 11 running 2.6.38. > > Thanks again for the fast and helpful response. > > - Eric > > On Thu, Sep 8, 2011 at 6:30 PM, Vladimir Lomov <[1]lomov...@gmail.com> > wrote: > > Hello, > > ** Eric Eric [2011-09-08 17:30:53 -0400]: > > Hello, I've decided to finally make the switch from screen to tmux. *I > had > > my screenrc set up to map my function keys to switch to the > appropriate > > terminal within a screen (eg pressing F3 would switch to terminal 3). > *To do > > this, I had to modify my screenrc to start numbering at 1 instead of > 0. *I'm > > having trouble doing the same in .tmux.conf. *My .tmux.conf currently > > contains the following: > > > set-option base-index 1 > > > new *-n WindowName1 vim > > neww -n WindowName2 vim > > neww -n WindowName3 vim > > > bind-key -n F1 select-window -t :1 > > bind-key -n F2 select-window -t :2 > > bind-key -n F3 select-window -t :3 > > > The mappings of F1, F2 and F3 work as expected. *However, base-index > seems > > to have no effect. *I added the three commands to create new windows > on > > startup from the tutorial, just as a test. *However, when I start > tmux, no > > new windows are created. *Also note that I can add a bunch of garbage > (eg > > "adf zsadf asdf") to the .tmux.conf file and it doesn't seem to cause > > errors. *However, if I add a new bind-key line (or comment an existing > one > > out), it seems to get picked up, so tmux must be reading the config > file. > > > Any ideas what's going on here? > > > Thanks for any assistance. > Before digging deeper, did you try option `-g'? Update a line in your > .tmux.conf > to following and check > set-option -g base-index 1 > > Then, information about version and OS might help too. > > --- > WBR, Vladimir Lomov > > -- > You'd better smile when they watch you, smile like you're in control. > * * * * * * * *-- Smile, "Was (Not Was)" > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market > businesses > from deploying virtual desktops? * How do next-generation virtual > desktops > provide companies an easier-to-deploy, easier-to-manage and more > affordable > virtual desktop > model.[2]http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > tmux-users mailing list > [3]tmux-users@lists.sourceforge.net > [4]https://lists.sourceforge.net/lists/listinfo/tmux-users > > References > > Visible links > 1. mailto:lomov...@gmail.com > 2. http://www.accelacomm.com/jaw/sfnl/114/51426474/ > 3. mailto:tmux-users@lists.sourceforge.net > 4. https://lists.sourceforge.net/lists/listinfo/tmux-users > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users