add zsh plugins

This commit is contained in:
TheK4n 2022-02-04 16:31:46 +03:00
parent 7d3099e659
commit e92917a951
4 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,7 @@ alias l.='ls -AF --ignore="*"'
alias ll='ls -lhF' alias ll='ls -lhF'
alias la='ls -AF' alias la='ls -AF'
alias lt='du -sh * | sort -h | tac' alias lt='du -sh . && du -sh * .* 2>/dev/null | sort -h | tac'
alias rm='rm -r' alias rm='rm -r'
alias mkdir='mkdir -pv' alias mkdir='mkdir -pv'

View File

@ -7,6 +7,7 @@ setopt nonomatch # hide error message if there is no match for the pat
setopt notify # report the status of background jobs immediately setopt notify # report the status of background jobs immediately
setopt numericglobsort # sort filenames numerically when it makes sense setopt numericglobsort # sort filenames numerically when it makes sense
setopt promptsubst # enable command substitution in prompt setopt promptsubst # enable command substitution in prompt
setopt histignorespace # Don't save commands that start with space
WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
@ -25,3 +26,5 @@ bindkey '^[[6~' end-of-buffer-or-history # page down
bindkey '^[[H' beginning-of-line # home bindkey '^[[H' beginning-of-line # home
bindkey '^[[F' end-of-line # end bindkey '^[[F' end-of-line # end
bindkey '^[[Z' undo # shift + tab undo last action bindkey '^[[Z' undo # shift + tab undo last action

7
.subzsh/plugins Normal file
View File

@ -0,0 +1,7 @@
so () {
[ -f "$1" ] && source "$1"
}
so /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
so /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

View File

@ -8,6 +8,7 @@ so "$HOME"/.subzsh/completion
so "$HOME"/.subzsh/history so "$HOME"/.subzsh/history
so "$HOME"/.subzsh/prompt so "$HOME"/.subzsh/prompt
so "$HOME"/.subzsh/other so "$HOME"/.subzsh/other
so "$HOME"/.subzsh/plugins
so "$HOME"/.subbash/aliases so "$HOME"/.subbash/aliases
so "$HOME"/.subbash/export so "$HOME"/.subbash/export