tmate-io / tmate

Instant Terminal Sharing

Home Page:https://tmate.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

~/.tmux.conf Not Read

afrazkhan opened this issue · comments

commented

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.

commented

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.