diff options
| author | 2019-08-23 19:10:48 +0530 | |
|---|---|---|
| committer | 2019-08-23 19:10:48 +0530 | |
| commit | 979fadcc7ea1c7550b7111aa9c691807fc5dc800 (patch) | |
| tree | eb6c3a98172876a59b068e27aa3958c7178de2d8 | |
| parent | 9feb5ce6512c9a5b1e6658d0ea408f5c19332b2c (diff) | |
| download | nnn-979fadcc7ea1c7550b7111aa9c691807fc5dc800.tar.gz | |
Change history file path.
The new path is ${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.history
| -rw-r--r-- | src/nnn.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4964,7 +4964,8 @@ int main(int argc, char *argv[]) #else rl_bind_key('\t', rl_complete); #endif - read_history(NULL); + mkpath(cfgdir, ".history", g_buf); + read_history(g_buf); #endif if (!initcurses()) @@ -4974,7 +4975,8 @@ int main(int argc, char *argv[]) exitcurses(); #ifndef NORL - write_history(NULL); + mkpath(cfgdir, ".history", g_buf); + write_history(g_buf); #endif if (cfg.pickraw) { |