you can check if you are inside tmux by checking $TMUX

but of course you can't tell what the outside terminal is, tmux hides
it, that's the point


On Wed, Jun 15, 2011 at 01:35:34PM +0800, alphachi wrote:
>    I want to customize my csh prompt based on the current environment. For
>    example, I can determine the current environment according to $TERM:
>    "$TERM == 'cons25'" is Console; "$TERM == 'xterm'" is X. But for tmux the
>    $TERM is still screen, whether under Console or X.
> 
>    How can I differentiate tmux environment between Console and X? That is to
>    say, which environment variable can be used in my .cshrc for determining
>    the tmux is under Console or X ?
> 
>    Thanks!

> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev

> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to