ソースを参照

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


読み込み中…
キャンセル
保存