When I test with a variable like:
test="abc"
above command didn't save into history, must I have messed up with some setopt
but I don't know which can be affect to this.
So what zsh history opts can prevent it from saving var into zsh history? I have HIST_NO_FUNCTIONS
set that I suspect it.
EDIT: full setopt
autocd
autonamedirs
autopushd
extendedglob
extendedhistory
noglobalrcs
histexpiredupsfirst
histfindnodups
histignorealldups
histignoredups
histignorespace
histnofunctions
histnostore
histreduceblanks
histsavenodups
histverify
incappendhistory
interactive
interactivecomments
login
magicequalsubst
monitor
nonotify
nullglob
promptsubst
pushdignoredups
pushdminus
pushdsilent
pushdtohome
rmstarsilent
sharehistory
shinstdin
zle
zsh
shell and the default options, nor by settingHIST_NO_FUNCTIONS
. You may want to show what history-related options/variables you have set. – Kusalananda May 24 '20 at 19:45setopts
@Kusalananda – Tuyen Pham May 24 '20 at 19:52setopt
output. This includes several variables and anyzshaddhistory
hook. Post your whole configuration. – Gilles 'SO- stop being evil' May 24 '20 at 19:53