On Thu, Apr 24, 2014 at 6:37 PM, Thomas Koch <tho...@koch.ro> wrote:

> On Linux you can access the environment variables of processes of your own
> user by inspecting /proc/$PROCESS_ID/environ. Maybe tmux could provide the
> process id of a process running in a pane?
>

IMHO, tmux can already print the pid of process in the pane.
What is needed is the process id of the client tmux. It can be done by
matching up
ttys and some scripting around ps,  but then , it's another scripted hack.
Right now I'm using the session's environment variables. The feature i
request
will essentially help me in eliminate the following hack:

tm ()
{
    if ! ( tmux server-info ); then
        echo Laumching tmux ...;
        env -i TERM=$TERM HOME=$HOME tmux new-session -d;
    fi;
    tmux set-environment -g DISPLAY $DISPLAY;
    tmux set-environment -g SSH_AUTH_SOCK $SSH_AUTH_SOCK;
    tmux attach
}

-Regards
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to