From 773484e1761fe65c27832aa595468399cc9baa59 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 20 May 2019 16:59:15 +0100 Subject: Add unique history to zsh --- zsh/.zsh/export.zsh | 2 +- zsh/.zshrc | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/.zsh/export.zsh b/zsh/.zsh/export.zsh index 0430a62..b66fe00 100644 --- a/zsh/.zsh/export.zsh +++ b/zsh/.zsh/export.zsh @@ -5,8 +5,8 @@ export VISUAL='emacsclient -c' export TERM='xterm-256color' export PATH="${HOME}/.gem/ruby/2.6.0/bin:/usr/local/bin:${PATH}" -export PATH="${HOME}/.local/bin:${PATH}" export PATH="/usr/bin:${PATH}" export PATH="${HOME}/.yarn/bin:${PATH}" export PATH="${PATH}:/opt/Xilinx/Vivado/2018.3/bin" export PATH="${PATH}:/opt/intelFPGA_lite/18.1/quartus/bin" +export PATH="${HOME}/.local/bin:${PATH}" diff --git a/zsh/.zshrc b/zsh/.zshrc index bd9cbb1..5086bbe 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -2,7 +2,6 @@ HISTFILE=~/.histfile HISTSIZE=100000 SAVEHIST=1000000 -setopt appendhistory notify bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall @@ -18,6 +17,12 @@ autoload -Uz compinit compinit # End of lines added by compinstall +setopt APPEND_HISTORY +setopt HIST_EXPIRE_DUPS_FIRST +setopt HIST_IGNORE_DUPS +setopt HIST_IGNORE_SPACE +setopt HIST_FIND_NO_DUPS + (cat ~/.cache/wal/sequences &) # Sourcing everything -- cgit