to make sure terminal histories are always DROPPED when reboot.
This commit is contained in:
@@ -6,6 +6,13 @@ mkdir -p /tmp/$USER
|
||||
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.
|
||||
# [[ -f /run/user/$UID/.zshlogon ]] && return
|
||||
# touch /run/user/$UID/.zshlogon
|
||||
|
||||
Reference in New Issue
Block a user