From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- zsh/.zsh.d/20_history.zsh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 zsh/.zsh.d/20_history.zsh (limited to 'zsh/.zsh.d/20_history.zsh') diff --git a/zsh/.zsh.d/20_history.zsh b/zsh/.zsh.d/20_history.zsh new file mode 100644 index 0000000..d1931f3 --- /dev/null +++ b/zsh/.zsh.d/20_history.zsh @@ -0,0 +1,20 @@ +#!/usr/bin/env zsh + +[ "${HISTFILE: -4}" != "_zsh" ] && export HISTFILE="${HISTFILE}_zsh" +export SAVEHIST="${HISTSIZE}" + +setopt APPEND_HISTORY +setopt BANG_HIST +setopt EXTENDED_HISTORY +setopt HIST_EXPIRE_DUPS_FIRST +setopt HIST_IGNORE_ALL_DUPS +setopt HIST_IGNORE_DUPS +setopt HIST_IGNORE_SPACE +setopt HIST_REDUCE_BLANKS +setopt HIST_SAVE_NO_DUPS +setopt HIST_VERIFY +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY +unsetopt HIST_BEEP + +export HISTIGNORE="ls:cd:cd -:pwd:exit:date:cal:* --help" -- cgit 1.4.1