tmate-io / tmate

Instant Terminal Sharing

Home Page:https://tmate.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for the XDG Base Directory Specification

delvatt opened this issue · comments

Hi everyone,

I was just wondering if tmate ever considered supporting the XDG base directory specification, especially XDG_CONFIG_HOME for the default configuration file, otherwise fall back to ~./tmate.conf for backward compatibility.

For example, tmux 3.1 introduced ~/.config/tmux/tmux.conf and in 3.2 XDG_CONFIG_HOME/tmux/tmux.conf was added.

in the meantime, you can put this into your .{bash,zsh}rc file:

alias tmate='tmate -f "${XDG_CONFIG_HOME}/tmate/tmate.conf"'

@pierreprinetti Fair enough! (I've definitely missed that -f flag). Thank you very much.

Maybe one last thing would be to include these locations (~/.config/tmux/tmux.conf and XDG_CONFIG_HOME/tmux/tmux.conf) into the default lookup path, even if I'm not sure how much effort such a change might require and if it will be worth it. What do you think ?

That would be ideal, however I don't speak C unfortunately.

At least, I consider the issue (uncluttered ~ ) resolved for me so again, thank you!