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:
Kenneth Benzie 2018-08-30 22:25:54 +01:00
parent f24253b8c1
commit 2ac97afdd1
2 changed files with 12 additions and 8 deletions

4
zshenv
View File

@ -5,8 +5,8 @@
# Enable saving command history to file
[ ! -d $HOME/.cache/zsh ] && mkdir -p $HOME/.cache/zsh
HISTFILE=$HOME/.cache/zsh/histfile
HISTSIZE=5000
SAVEHIST=5000
HISTSIZE=20000
SAVEHIST=20000
# Enable time stats for long lasting commands
REPORTTIME=5

16
zshrc
View File

@ -38,12 +38,13 @@ source-plugin sandbox
source-plugin notes
# Remove duplicates from history
setopt hist_ignore_all_dups
setopt hist_reduce_blanks
setopt hist_save_no_dups
setopt histignoredups
# 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
setopt interactive_comments
@ -52,10 +53,13 @@ setopt interactive_comments
setopt ignore_eof
# Disable sound
unsetopt beep
setopt nobeep
# 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
autoload -U compinit