I have tried the:

neww -t 1 -n Tab1


...and it doesn't work by itself.

I have gotten some luck by adding the following in my .tmux.conf file:

new-session -d -s Boards


which allows me to "source" a config file for the "windows" that I want to
automatically add, like so:

source /home/user/.tmux/windows.conf


...which contains the following:

attach-session -t Boards

rename-window -t 0 Tab0
new-window -a -n Tab1
new-window -a -n Tab2


The problem is that it creates two sessions, "Boards" with the extra
windows and a "0" session. I have to exit or kill the "0" session and do a
"tmux attach" to get to my "Boards" session.

I apologize for all of the "newbie" discussion; I have used "tmux" a lot on
Linux machines, but I use it through the "byobu" package which does most of
the "config" work for you. But, it also creates two sessions, one of which
I kill to get to the one I want to use.

Thanks for all of the suggestions so far!

Jason K Pope
[email protected]

Greater love has no one than this, that one lay down his life for his
friends.
John 15:13

On Sun, Sep 24, 2017 at 2:55 PM, Jason Pope <[email protected]> wrote:

> All,
>
> I am running tmux-2.5_1 on FreeBSD 11.1 and I am having an issue with my
> configuration in a .tmux.conf file. I want to create a tmux.conf file that
> will start tmux with multiple windows open and ready. I have tried the
> following simple config file as tmux.conf:
>
> new-window -ad -n Tab3
> new-window -ad -n Tab2
> new-window -ad -n Tab1
>
>
> I have even tried placing the above configuration in a file called
> windows.conf, then source that file from tmux.conf with:
>
> source-file windows.conf
>
>
> Neither config's work. I get one tmux session with one window open. Once I
> am in the tmux terminal, I can get it to add windows by sourcing the
> windows file with:
>
> tmux source-file windows.conf
>
>
> Can anyone tell me what I am doing wrong?
>
> boards
> [email protected]
>
> Greater love has no one than this, that one lay down his life for his
> friends.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to