Bug 1291480 - Patch to allow for .tmux.conf to be located in $XDG_CONFIG_HOME
Summary: Patch to allow for .tmux.conf to be located in $XDG_CONFIG_HOME
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: tmux
Version: 23
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
Assignee: Sven Lankes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-14 22:47 UTC by Adam Hunt
Modified: 2016-07-22 11:33 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-22 11:33:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Hunt 2015-12-14 22:47:58 UTC
tmux does not include support for searching for its config file(s) anywhere other than ~/.tmux.conf. Support to search $XDG_CONFIG_HOME should be added. Upstream has opted not to support the XDG Base Directory Specification[1][2] instead telling users to symlink tmux.conf which effectively defeats part of the goal of the specification.

In the years since the introduction of the XDG specifications it has seen wide and increasing adoption across a variety of environments. I would argue that the community has reached a de facto consensus and that support for it should be adopted unless such support would badly break backward compatibility or potentially lead to serious security issues.

Further, adding support to tmux for searching $XDG_CONFIG_HOME in no way requires a user to follow the XDG spec; if anyone wishes to continue placing their config files in the root of their home directory, they are free to do so.

[1] https://github.com/tmux/tmux/issues/142
[2] http://thread.gmane.org/gmane.comp.terminal-emulators.tmux.user/6013


Note You need to log in before you can comment on or make changes to this bug.