aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-23 18:15:02 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-23 18:15:02 +0100
commitd53e1fedd595db68a4e5bc9e3e7024fa924300d3 (patch)
tree0c602f035c7520fcdaf9b73b83e7cb97cd03a3ec /tmux.h
parent0d3fdae7b623bd992b1fd2058e59920b2efd47da (diff)
downloadrtmux-d53e1fedd595db68a4e5bc9e3e7024fa924300d3.tar.gz
rtmux-d53e1fedd595db68a4e5bc9e3e7024fa924300d3.tar.bz2
rtmux-d53e1fedd595db68a4e5bc9e3e7024fa924300d3.zip
Add TMUX_SOCK like TMUX_PATH for the socket directory.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index f1652b68..6cbc0d81 100644
--- a/tmux.h
+++ b/tmux.h
@@ -65,10 +65,13 @@ struct winlink;
/* Client-server protocol version. */
#define PROTOCOL_VERSION 8
-/* Default configuration file. */
+/* Default configuration files and socket paths. */
#ifndef TMUX_CONF
#define TMUX_CONF "/etc/tmux.conf:~/.tmux.conf"
#endif
+#ifndef TMUX_SOCK
+#define TMUX_SOCK "$TMUX_TMPDIR:" _PATH_TMP
+#endif
/* Minimum layout cell size, NOT including border lines. */
#define PANE_MINIMUM 1