~/.tmux.conf Not Read
afrazkhan opened this issue · comments
When I start a new tmate session by running tmate
on it's own, ~/.tmux.conf
is not read. I have to either use the -f
option, or symlink ~/.tmate.conf
to the Tmux configuration.
this is so you can have separate configs, if you wan the same config, then symlink is your best bet.
Ah, okay well that's fine. I got confused because there are multiple references to ~/.tmux.conf
:
I guess much of it is copied from tmux though?
@afrazkhan AFAICT, there's nothing copied automatically. I have a quite customized tmux and when started using tmate, found nothing of it being sourced (happened again on tmate 2.4.0 on Ubuntu Jammy). Since some of my tmux.conf
settings don't make sense under tmate, I've ended up taking a different approach.
As an alternative solution, I've split my .tmux.conf
in several files (eg. tmux.bindings.conf
) and I'm including them via the source
directive from both tmate.conf
and tmux.conf
as needed (or not).
HTH. Mind closing the issue if it's fixed.