Mariusz,
Are you starting tmux on shell login (.bashrc/.bash_profile)? Each pane in
tmux runs as if launched at login--meaning they execute .bash_profile /
.bashrc. Fortunately, by default, nested tmux sessions are not allowed, but
wrap your tmux execution in a conditional to prevent the pane from even
trying to create a nested session.

Last lines from my .bash_profile:

if [[ "$TERM" != "screen-256color" ]]; then
      exec tmux -S /var/tmux/$USER new-session -A -s "$USER"
fi

-Saad


On Tue, Jun 4, 2013 at 3:00 AM, Thomas Adam <tho...@xteddy.org> wrote:

> On Tue, Jun 04, 2013 at 10:52:25AM +0200, Mariusz.makowski wrote:
> > How can i rid of the message:
> >
> > sessions should be nested with care, unset $TMUX to force
> > sessions should be nested with care, unset $TMUX to force
> >
> >
> > Wheever i start Tmux, i get this message.
> > i am not starting tmux inside another tmux.
>
> Then the shell that an instance of tmux has started from is propagating
> that
> value down to each shell.  So you must be starting tmux from _somewhere_ --
> or you've set TMUX somewhere manually.
>
> -- Thomas Adam
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to