#set history size export HISTSIZE=10000 #save history after logout export SAVEHIST=10000 #history file export HISTFILE=~/.zhistory #append into history file setopt INC_APPEND_HISTORY #save only one command if 2 common are same and consistent setopt HIST_IGNORE_DUPS #add timestamp for each entry setopt EXTENDED_HISTORY
这是我的设置,可以正常工作