diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-04-24 10:57:03 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-04-24 10:57:03 +0100 |
commit | 4f3c31a6b63f4489bfc672b510036fd8d9491595 (patch) | |
tree | 9f402212e792abe3fc58f4505ed909236a6e9a17 /tmux.c | |
parent | 11b90bc9591b4b101efef1f8a9a0d9656d2953c9 (diff) | |
download | rtmux-4f3c31a6b63f4489bfc672b510036fd8d9491595.tar.gz rtmux-4f3c31a6b63f4489bfc672b510036fd8d9491595.tar.bz2 rtmux-4f3c31a6b63f4489bfc672b510036fd8d9491595.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |