On Fri, Nov 12, 2010 at 12:39:59AM -0500, Ben Boeckel wrote: > Hi, > > I've been using tmux for a while now and have attached to a session > via ssh and then detached. When I go back to the machine with the > original session, any new windows have the environment of the ssh > session where the attach happens (i.e., new panes inherit the > environment of the last `tmux attach` command). I was wondering whether > it'd be possible to have, when a pane is created directly (or, rather, > unambiguously) by a client, inherit its environment rather than the last > client (if the pane is created via a command or some other source, using > the last client is fine).
How the environment is handled is documented in the man page. Only a limited set of variables is updated on attach. > > Also, since panes and such can move around, tracking a specific pane to > interact with via scripts and such can be hard. Would it be possible to > have tmux inject a TMUX_PANE_ID into a pane's environment that is static > and unique for the life of the pane so that panes can always be reached? > Maybe using '%' as an ID identifier in target commands would be > possible. Commands to query for the current pane with focus and get back > its address and ID would also make sense. This is a nice idea, I'll add it to the todo list. > > This problem arises in screen.vim[1] which cannot reliably track a tmux > pane to interact with a specific one. > > --Ben > > [1]https://github.com/ervandew/screen > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users