add zsh plugins
This commit is contained in:
parent
7d3099e659
commit
e92917a951
@ -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'
|
||||||
|
|||||||
@ -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
7
.subzsh/plugins
Normal 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
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user