Add an option (history-file) for a file to save/restore command prompt

history, from Olof-Joachim Frahm.
This commit is contained in:
nicm
2015-07-20 15:50:04 +00:00
parent d4ce210713
commit 92af3766ec
6 changed files with 124 additions and 9 deletions

3
tmux.h
View File

@ -1469,6 +1469,7 @@ int checkshell(const char *);
int areshell(const char *);
void setblocking(int, int);
__dead void shell_exec(const char *, const char *);
const char *find_home(void);
/* cfg.c */
extern struct cmd_q *cfg_cmd_q;
@ -1943,6 +1944,8 @@ void status_prompt_clear(struct client *);
int status_prompt_redraw(struct client *);
void status_prompt_key(struct client *, int);
void status_prompt_update(struct client *, const char *, const char *);
void status_prompt_load_history(void);
void status_prompt_save_history(void);
/* resize.c */
void recalculate_sizes(void);