Update options
Fix spellings of various options, enable some new options found in [https://github.com/willghatch/zsh-saneopt](zsh-saneopt).
This commit is contained in:
parent
f24253b8c1
commit
2ac97afdd1
4
zshenv
4
zshenv
@ -5,8 +5,8 @@
|
|||||||
# Enable saving command history to file
|
# Enable saving command history to file
|
||||||
[ ! -d $HOME/.cache/zsh ] && mkdir -p $HOME/.cache/zsh
|
[ ! -d $HOME/.cache/zsh ] && mkdir -p $HOME/.cache/zsh
|
||||||
HISTFILE=$HOME/.cache/zsh/histfile
|
HISTFILE=$HOME/.cache/zsh/histfile
|
||||||
HISTSIZE=5000
|
HISTSIZE=20000
|
||||||
SAVEHIST=5000
|
SAVEHIST=20000
|
||||||
|
|
||||||
# Enable time stats for long lasting commands
|
# Enable time stats for long lasting commands
|
||||||
REPORTTIME=5
|
REPORTTIME=5
|
||||||
|
16
zshrc
16
zshrc
@ -38,12 +38,13 @@ source-plugin sandbox
|
|||||||
source-plugin notes
|
source-plugin notes
|
||||||
|
|
||||||
# Remove duplicates from history
|
# Remove duplicates from history
|
||||||
setopt hist_ignore_all_dups
|
setopt histignoredups
|
||||||
setopt hist_reduce_blanks
|
|
||||||
setopt hist_save_no_dups
|
|
||||||
|
|
||||||
# Enable multi-terminal history
|
# Enable multi-terminal history
|
||||||
setopt inc_append_history
|
setopt share_history
|
||||||
|
|
||||||
|
# Disable error when no glob matches are found
|
||||||
|
setopt nonomatch
|
||||||
|
|
||||||
# Enable comments in the prompt
|
# Enable comments in the prompt
|
||||||
setopt interactive_comments
|
setopt interactive_comments
|
||||||
@ -52,10 +53,13 @@ setopt interactive_comments
|
|||||||
setopt ignore_eof
|
setopt ignore_eof
|
||||||
|
|
||||||
# Disable sound
|
# Disable sound
|
||||||
unsetopt beep
|
setopt nobeep
|
||||||
|
|
||||||
# Disable tty flow control, allows vim to use '<Ctrl>S'
|
# Disable tty flow control, allows vim to use '<Ctrl>S'
|
||||||
unsetopt flow_control && stty -ixon
|
setopt noflowcontrol
|
||||||
|
|
||||||
|
# Enable completions in the middle of a word
|
||||||
|
setopt completeinword
|
||||||
|
|
||||||
# Initialize completions
|
# Initialize completions
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user