changed .zshrc

This commit is contained in:
More 2023-10-21 22:27:20 +03:00
parent 022533d7f3
commit 312dc1b3af

26
.zshrc
View File

@ -39,16 +39,15 @@ bindkey "^[[1;3D" backward-word
# ~/.zshrc file for zsh interactive shells. # ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples # see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name setopt autocd
#setopt correct # auto correct mistakes setopt interactivecomments
setopt interactivecomments # allow comments in interactive mode setopt magicequalsubst
setopt magicequalsubst # enable filename expansion for arguments of the form anything=expression setopt nonomatch
setopt nonomatch # hide error message if there is no match for the pattern setopt notify
setopt notify # report the status of background jobs immediately setopt numericglobsort
setopt numericglobsort # sort filenames numerically when it makes sense setopt promptsubst
setopt promptsubst # enable command substitution in prompt
WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word WORDCHARS=${WORDCHARS//\/}
# hide EOL sign ('%') # hide EOL sign ('%')
PROMPT_EOL_MARK="" PROMPT_EOL_MARK=""
@ -87,11 +86,10 @@ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
HISTSIZE=1000 HISTSIZE=1000
SAVEHIST=2000 SAVEHIST=2000
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplicated commands history list setopt hist_ignore_dups
setopt hist_ignore_space # ignore commands that start with space setopt hist_ignore_space
setopt hist_verify # show command with history expansion to user before running it setopt hist_verify
#setopt share_history # share command history data
# force zsh to show the complete history # force zsh to show the complete history
alias history="history 0" alias history="history 0"