diff --git a/home/dot_local/bin/server/history.zsh b/home/dot_local/bin/server/history.zsh index e3b9b83a..0de7352d 100644 --- a/home/dot_local/bin/server/history.zsh +++ b/home/dot_local/bin/server/history.zsh @@ -1,6 +1,11 @@ #!/usr/bin/env zsh +setopt share_history +setopt append_history setopt inc_append_history +setopt hist_no_store +setopt hist_ignore_all_dups +setopt hist_ignore_dups export HISTFILE=${HISTFILE:-$HOME}/.zsh_history export HISTSIZE=10000 diff --git a/home/dot_tmux.conf.d/system/server.conf b/home/dot_tmux.conf.d/system/server.conf index 8581f127..9eae691f 100644 --- a/home/dot_tmux.conf.d/system/server.conf +++ b/home/dot_tmux.conf.d/system/server.conf @@ -28,3 +28,6 @@ set-window-option -g mouse on # for 256 colors terminal set -g default-terminal "screen-256color" + +# for adding/loading the history +set -g history-file ~/.zsh_history