On 2014-05-31 20:59 -0700, Jesse Molina wrote:
> This first bash script has a number of environmental variables which I
> need to exist in the new-session env to get passed on to the
> application/script in which the new session starts.

You can try passing the current environment to the session's first
process on its command line. Try this (beware: this is a bit unsafe this
way, you'll need to sanitize this command, this is just a
demonstration):

        tmux new-session "env $(env | tr '\n' ' ') bash"

After the new session already exists, you can script around the
set-environment command in tmux.

-- 
Balazs

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to