浏览代码

Change history file path.

The new path is ${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.history
master
Arun Prakash Jana 5 年前
父节点
当前提交
979fadcc7e
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/nnn.c

+ 4
- 2
src/nnn.c 查看文件

@@ -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) {


正在加载...
取消
保存