Use ~/.tmate.conf to load tmate specific settings

Closes #10
This commit is contained in:
Nicolas Viennot
2013-10-04 17:50:55 -04:00
parent 0d182e707e
commit ed4020b589
3 changed files with 22 additions and 8 deletions

3
tmux.h
View File

@ -43,6 +43,7 @@ extern char **environ;
/* Default configuration files. */
#define DEFAULT_CFG ".tmux.conf"
#define DEFAULT_TMATE_CFG ".tmate.conf"
#define SYSTEM_CFG "/etc/tmux.conf"
/* Default prompt history length. */
@ -1513,7 +1514,7 @@ extern struct options global_s_options;
extern struct options global_w_options;
extern struct environ global_environ;
extern struct event_base *ev_base;
extern char *cfg_file;
extern char *cfg_file, *tmate_cfg_file;
extern char *shell_cmd;
extern int debug_level;
extern time_t start_time;