Skip to content

Commit

Permalink
do the same for shell history
Browse files Browse the repository at this point in the history
  • Loading branch information
henryfauna committed Dec 6, 2024
1 parent 9303477 commit 21755d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/file-util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export function initHistoryStorage() {
}
const historyFile = path.join(historyDir, "history");
if (!fileExists(historyFile)) {
fs.writeFileSync(historyFile, "");
fs.writeFileSync(historyFile, "", { mode: 0o600 });
}

return historyFile;
Expand All @@ -351,7 +351,7 @@ export function clearHistoryStorage() {
const fs = container.resolve("fs");
const homedir = container.resolve("homedir")();
const historyFile = path.join(homedir, ".fauna/history");
fs.writeFileSync(historyFile, "");
fs.writeFileSync(historyFile, "", { mode: 0o600 });
}

/**
Expand Down

0 comments on commit 21755d3

Please sign in to comment.