aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/.zshrc
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-06-21 19:24:02 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-06-21 19:24:02 +0200
commit0594d532bcbdba279e273e4096a160834e91a086 (patch)
treeddc53ed33818e89673d5abba5659c16b9da39be2 /config/zsh/.zshrc
parent21f4bec0c9e5c1bfd6ef5e656af193b04b439e24 (diff)
downloaddotfiles-0594d532bcbdba279e273e4096a160834e91a086.tar.gz
dotfiles-0594d532bcbdba279e273e4096a160834e91a086.tar.bz2
dotfiles-0594d532bcbdba279e273e4096a160834e91a086.zip
Added zsh sharing history between shells
Diffstat (limited to 'config/zsh/.zshrc')
-rw-r--r--config/zsh/.zshrc14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc
index 9850b59..cc754a0 100644
--- a/config/zsh/.zshrc
+++ b/config/zsh/.zshrc
@@ -46,10 +46,16 @@ bindkey -v '^?' backward-delete-char
bindkey -v
export KEYTIMEOUT=1
-setopt auto_cd # cd without `cd` command
# setopt pushd_ignore_dups
-setopt list_rows_first # cycle through row first in menu
# setopt extendedglob
+setopt auto_cd # cd without `cd` command
+setopt list_rows_first # cycle through row first in menu
+setopt share_history # share history between shells
+setopt extended_history # command timestamp in history
+setopt hist_ignore_dups # ignore duplicate entry in history
+
+export HISTSIZE=10000
+export SAVEHIST=5000
# executed when changing directory
chpwd() {
@@ -66,8 +72,8 @@ fignore=(o hi) # ignore extensions in autocomplete
# shellcheck source=/dev/null
. "$XDG_DATA_HOME/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" # prompt syntax highlight
-export YSU_MESSAGE_POSITION="after" # you-should-use message after command output
-. "$XDG_DATA_HOME/zsh/zsh-you-should-use/you-should-use.plugin.zsh" # alias reminder
+export YSU_MESSAGE_POSITION="after" # you-should-use message after command output
+. "$XDG_DATA_HOME/zsh/zsh-you-should-use/you-should-use.plugin.zsh" # alias reminder
# set tab to 4 spaces
tabs 4