Improve zsh completion, history, and shell options
Add menu-select and case-insensitive tab completion, increase history size to 50000 with dedup and cross-session sharing, enable useful shell options (CORRECT, INTERACTIVE_COMMENTS, EXTENDED_GLOB, AUTO_CD), and fix $home typo in PATH.
This commit is contained in:
parent
8fdb1e4d87
commit
5aa0d13688
24
.zshrc
24
.zshrc
@ -1,10 +1,26 @@
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
HISTFILE="$HOME/.zsh_history"
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
|
||||
export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$home/.local/bin:$PATH"
|
||||
# Completion settings.
|
||||
zstyle ':completion:*' menu select
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||
|
||||
# History settings.
|
||||
HISTFILE="$HOME/.zsh_history"
|
||||
HISTSIZE=50000
|
||||
SAVEHIST=50000
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
setopt HIST_REDUCE_BLANKS
|
||||
setopt SHARE_HISTORY
|
||||
setopt HIST_IGNORE_SPACE
|
||||
|
||||
# Shell options.
|
||||
setopt CORRECT
|
||||
setopt INTERACTIVE_COMMENTS
|
||||
setopt EXTENDED_GLOB
|
||||
setopt AUTO_CD
|
||||
|
||||
export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
|
||||
export EDITOR="vim"
|
||||
export TERMINAL="konsole"
|
||||
export BROWSER="firefox"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user