* Elimar Riesebieter <[email protected]> [2015-03-29 10:20 +0200]:
> Hi all,
>
> how do I manage to run tmux on screen-256color in urxvt|xterm
> and on screen in a vt aka tty ($TERM=linux)?
>
> set-option -g default-terminal screen-256color
> is set but this isn't usefull on a tty while i.e. vim is used to run
> from the term variable.
>
> I didn't found an if instruction or something like that for
> tmux.conf.
Workaround in zsh:
# run tmux for different TERMS
if [[ "$TERM" == "linux" ]]
then
alias tmux='tmux -f $HOME/.tmux8.conf'
else
alias tmux='tmux -f $HOME/.tmux256.conf'
fi
Well this needs to be optimized to check first whether a tmux-server
runs. If tmux runs in urxvt and I try to open a second one on a vt
it grabs the term definition from the running urxvt session...
new-session didn't help here.
Elimar
--
Do you smell something burning or is it me?
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users