Skip to content

Commit 589c2f7

Browse files
authored
Merge pull request #43 from rxaviers/restricted-history-file-permission
Restricted history file permission
2 parents dda3a69 + 94cd892 commit 589c2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatgpt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ CONTEXT=${CONTEXT:-false}
211211
# create history file
212212
if [ ! -f ~/.chatgpt_history ]; then
213213
touch ~/.chatgpt_history
214-
chmod a+rw ~/.chatgpt_history
214+
chmod 600 ~/.chatgpt_history
215215
fi
216216

217217
running=true

0 commit comments

Comments
 (0)