Home | History | Annotate | Download | only in dist

Lines Matching refs:history_file

67 	const char	*home, *history_file;
70 history_file = options_get_string(global_options, "history-file");
71 if (*history_file == '\0')
73 if (*history_file == '/')
74 return (xstrdup(history_file));
76 if (history_file[0] != '~' || history_file[1] != '/')
80 xasprintf(&path, "%s%s", home, history_file + 1);
111 char *history_file, *line, *tmp;
114 if ((history_file = status_prompt_find_history_file()) == NULL)
116 log_debug("loading history from %s", history_file);
118 f = fopen(history_file, "r");
120 log_debug("%s: %s", history_file, strerror(errno));
121 free(history_file);
124 free(history_file);
152 char *history_file;
154 if ((history_file = status_prompt_find_history_file()) == NULL)
156 log_debug("saving history to %s", history_file);
158 f = fopen(history_file, "w");
160 log_debug("%s: %s", history_file, strerror(errno));
161 free(history_file);
164 free(history_file);