mirror of
https://github.com/jarun/nnn.git
synced 2024-09-29 09:17:51 +00:00
Change history file path.
The new path is ${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.history
This commit is contained in:
parent
9feb5ce651
commit
979fadcc7e
|
@ -4964,7 +4964,8 @@ int main(int argc, char *argv[])
|
||||||
#else
|
#else
|
||||||
rl_bind_key('\t', rl_complete);
|
rl_bind_key('\t', rl_complete);
|
||||||
#endif
|
#endif
|
||||||
read_history(NULL);
|
mkpath(cfgdir, ".history", g_buf);
|
||||||
|
read_history(g_buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!initcurses())
|
if (!initcurses())
|
||||||
|
@ -4974,7 +4975,8 @@ int main(int argc, char *argv[])
|
||||||
exitcurses();
|
exitcurses();
|
||||||
|
|
||||||
#ifndef NORL
|
#ifndef NORL
|
||||||
write_history(NULL);
|
mkpath(cfgdir, ".history", g_buf);
|
||||||
|
write_history(g_buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (cfg.pickraw) {
|
if (cfg.pickraw) {
|
||||||
|
|
Loading…
Reference in a new issue