summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-04-24 10:57:03 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-04-24 10:57:03 +0100
commit4f3c31a6b63f4489bfc672b510036fd8d9491595 (patch)
tree9f402212e792abe3fc58f4505ed909236a6e9a17 /tmux.c
parent11b90bc9591b4b101efef1f8a9a0d9656d2953c9 (diff)
Use sysconfdir for the location of global tmux.conf (but default it to /etc),
based on changes from Dagobert Michelsen.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 2916bbb5..606c574f 100644
--- a/tmux.c
+++ b/tmux.c
@@ -363,7 +363,7 @@ main(int argc, char **argv)
if (pw != NULL)
home = pw->pw_dir;
}
- xasprintf(&cfg_file, "%s/%s", home, DEFAULT_CFG);
+ xasprintf(&cfg_file, "%s/.tmux.conf", home);
if (access(cfg_file, R_OK) != 0 && errno == ENOENT) {
free(cfg_file);
cfg_file = NULL;