# Command History related settings HISTFILE=$HOME/.zsh_history HISTSIZE=50000 SAVEHIST=10000 setopt extended_history # record timestamp of command in HISTFILE setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE setopt hist_ignore_dups # ignore duplicated commands history list setopt hist_ignore_space # ignore commands that start with space setopt hist_verify # show command with history expansion to user before running it setopt share_history # share command history data # setopt append_history # 退出时追加到历史文件 # setopt inc_append_history # 命令执行后立即写入历史文件 # setopt share_history # 在多个终端间共享历史 # setopt hist_ignore_dups # 忽略重复的命令 # setopt hist_reduce_blanks # 合并连续的空命令 # setopt hist_verify # 通过 fc 编辑历史命令后再执行 # setopt extended_history # 记录时间戳 # setopt hist_expire_dups_first # 先删除重复的命令再根据大小删除 # setopt hist_find_no_dups # 搜索历史时忽略重复项 # setopt hist_save_no_dups # 保存历史时忽略重复项