update shell history path
py is less convenient accessing inodes than pwsh, no need to redirect.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# init at each startup
|
# to clear history of shells easily operating filesystem.
|
||||||
mkdir -p /tmp/$USER/PSReadLine
|
# also powershell/PSReadLine -> /tmp/$USER/terminal
|
||||||
#ln -sf /tmp/$USER $HOME/.tmp
|
mkdir -p /tmp/$USER/terminal
|
||||||
|
|
||||||
# avoid dumplicate env appending.
|
# avoid dumplicate env appending.
|
||||||
# [[ -f /run/user/$UID/.zshlogon ]] && return
|
# [[ -f /run/user/$UID/.zshlogon ]] && return
|
||||||
|
|||||||
2
.zshrc
2
.zshrc
@@ -20,7 +20,7 @@ fi
|
|||||||
#
|
#
|
||||||
|
|
||||||
# also export this in bashrc.
|
# 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.
|
# Remove older command from the history if a duplicate is to be added.
|
||||||
setopt HIST_IGNORE_ALL_DUPS
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
|||||||
Reference in New Issue
Block a user