Is there a way to get the current session name (in a script) in tmux?

In screen I simply look at $STY (unless it has changed -- messy business that).

I've tried searching through the manpage, but only found how to
display session name in the status line.

I had expected something like "tmux get-option session-name" or
somesuch. But maybe I'm just reading the manpage wrong?

/zrajm

P.S. I'm just *loving* the "update-environment" option. I have an
attach-wrapper-script for screen which does that (by storing selected
variables to a file and having all shells source that file when it's
updated), but built-in support is much appreciated!

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to