to make sure terminal histories are always DROPPED when reboot.

This commit is contained in:
2025-12-01 12:17:40 +08:00
parent e02dd62343
commit e466c25a3c

View File

@@ -6,6 +6,13 @@ mkdir -p /tmp/$USER
ln -s /tmp/$USER $HOME/.tmp ln -s /tmp/$USER $HOME/.tmp
} }
# [[ -L ~/.zhistory && -L ~/.zsh_history && -L ~/.bash_history ]] || {
touch /run/user/$UID/.history
ln -sf /run/user/$UID/.history ~/.zhistory
ln -sf /run/user/$UID/.history ~/.zsh_history
ln -sf /run/user/$UID/.history ~/.bash_history
# }
# avoid dumplicate env appending. # avoid dumplicate env appending.
# [[ -f /run/user/$UID/.zshlogon ]] && return # [[ -f /run/user/$UID/.zshlogon ]] && return
# touch /run/user/$UID/.zshlogon # touch /run/user/$UID/.zshlogon