On 2014-07-17 17:32 +0000, eydaimon wrote:
> Similar to command such as `has-session` this command would simply
> display whether the current terminal is already in a tmux session.
How about just checking for the TMUX environment variable?
$ function tmux_in_session() { ! test -z "$TMUX"; }
$ tmux_in_session && echo in tmux session
in tmux session
--
Balazs
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users