mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-05-21 21:05:50 -07:00
fix history
This commit is contained in:
parent
4b32fb704a
commit
0ffeef12aa
@ -11,18 +11,18 @@ source ~/.environment
|
|||||||
source <(fzf --zsh)
|
source <(fzf --zsh)
|
||||||
|
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
HISTFILE=~/.zsh_history
|
|
||||||
HISTSIZE=10000
|
|
||||||
HISTFILESIZE=2000
|
|
||||||
HISTCONTROL=ignoreboth
|
|
||||||
# as soon as you hit enter, append to $HISTFILE
|
|
||||||
setopt INC_APPEND_HISTORY
|
|
||||||
# merge history from all running shells
|
|
||||||
setopt SHARE_HISTORY
|
|
||||||
# ignore duplicates and trivial commands
|
|
||||||
setopt HIST_IGNORE_DUPS
|
|
||||||
setopt HIST_IGNORE_SPACE
|
|
||||||
|
|
||||||
|
HISTFILE=~/.zsh_history
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
HISTSIZE=10000 # max lines kept in memory
|
||||||
|
SAVEHIST=10000 # max lines saved to $HISTFILE
|
||||||
|
|
||||||
|
# 2. Behavior flags
|
||||||
|
setopt APPEND_HISTORY # append, don’t rewrite the entire file on exit
|
||||||
|
setopt INC_APPEND_HISTORY # write each command as it’s entered
|
||||||
|
setopt SHARE_HISTORY # merge history across all running zsh’s
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS # don’t record a command if it’s already in history
|
||||||
|
setopt HIST_IGNORE_SPACE # don’t record commands that start with a space
|
||||||
|
|
||||||
# fpath=(/Users/sudacode/.docker/completions $fpath)
|
# fpath=(/Users/sudacode/.docker/completions $fpath)
|
||||||
FPATH="$HOME/.docker/completions:$FPATH"
|
FPATH="$HOME/.docker/completions:$FPATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user