aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/zsh/zshrc
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-11-16 21:05:09 -0600
committerToby Vincent <tobyv13@gmail.com>2021-11-16 21:05:09 -0600
commitd9de02f5a04425d98aa15090ba9a5f50b6730f15 (patch)
treeb8ad63e3a6342563e8815d1ab724430f6180c238 /zsh/zshrc
parent5582553eebccec6fc763037f5a367f34e2fd0e27 (diff)
revert: removed docker machine and fixed zsh history
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc21
1 files changed, 13 insertions, 8 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index da5a9ea..935eb7c 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,21 +1,26 @@
#!/usr/bin/env zsh
-HISTFILE=~/.zsh_history
-HISTSIZE=10000
-SAVEHIST=10000
HYPHEN_INSENSITIVE="true"
DISABLE_UPDATE_PROMPT="true"
DISABLE_AUTO_TITLE="true"
+HISTFILE=~/.zsh_history
+HISTSIZE=10000
+SAVEHIST=10000
+
+setopt NO_BEEP
+setopt MENU_COMPLETE
+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
+
typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]='fg=cyan'
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern line)
ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd completion)
-setopt NO_BEEP
-setopt MENU_COMPLETE
-setopt appendhistory
-# setopt HIST_IGNORE_ALL_DUPS
-
fpath=(~/.local/share/zsh/site-functions "${fpath[@]}")
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh