Build list of paths and weed out duplicates before loading configs.

This commit is contained in:
Nicholas Marriott
2020-04-23 17:56:45 +01:00
parent f87be8d052
commit 0d3fdae7b6
5 changed files with 83 additions and 50 deletions

4
tmux.h
View File

@ -65,7 +65,7 @@ struct winlink;
/* Client-server protocol version. */
#define PROTOCOL_VERSION 8
/* Default configuration files. */
/* Default configuration file. */
#ifndef TMUX_CONF
#define TMUX_CONF "/etc/tmux.conf:~/.tmux.conf"
#endif
@ -1748,6 +1748,8 @@ const char *sig2name(int);
const char *find_cwd(void);
const char *find_home(void);
const char *getversion(void);
void expand_paths(const char *, char ***, u_int *);
/* proc.c */
struct imsg;