From 6e2299e23fd987a61096faa0f87b50e6bde571af Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Wed, 31 Dec 2025 20:51:18 +0800 Subject: [PATCH] update shell history path py is less convenient accessing inodes than pwsh, no need to redirect. --- .zprofile | 6 +++--- .zshrc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.zprofile b/.zprofile index 2027396..738eddf 100644 --- a/.zprofile +++ b/.zprofile @@ -1,6 +1,6 @@ -# init at each startup -mkdir -p /tmp/$USER/PSReadLine -#ln -sf /tmp/$USER $HOME/.tmp +# to clear history of shells easily operating filesystem. +# also powershell/PSReadLine -> /tmp/$USER/terminal +mkdir -p /tmp/$USER/terminal # avoid dumplicate env appending. # [[ -f /run/user/$UID/.zshlogon ]] && return diff --git a/.zshrc b/.zshrc index 18a53d3..aebbf2a 100644 --- a/.zshrc +++ b/.zshrc @@ -20,7 +20,7 @@ fi # # also export this in bashrc. -HISTFILE=/tmp/$USER/.zhist +HISTFILE=/tmp/$USER/terminal/zsh_history # Remove older command from the history if a duplicate is to be added. setopt HIST_IGNORE_ALL_DUPS