mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 02:41:50 +08:00
Optimize zsh
This commit is contained in:
parent
4a6f6a0ad0
commit
cba85e6295
11
.zshrc
11
.zshrc
@ -30,9 +30,11 @@ zinit wait lucid for \
|
||||
zinit ice wait lucid atinit"bindkey '' autosuggest-execute" atload'_zsh_autosuggest_start'
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
|
||||
zinit light zsh-users/zsh-history-substring-search
|
||||
zinit light hlissner/zsh-autopair
|
||||
zinit ice wait lucid
|
||||
zinit load hlissner/zsh-autopair
|
||||
|
||||
zinit light zsh-users/zsh-completions
|
||||
zinit light zsh-users/zsh-history-substring-search
|
||||
|
||||
# Software
|
||||
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
|
||||
@ -41,7 +43,7 @@ zinit light sharkdp/bat
|
||||
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
||||
pick"direnv" src="zhook.zsh" for \
|
||||
direnv/direnv
|
||||
direnv/direnv
|
||||
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
@ -122,9 +124,6 @@ export MANWIDTH=${MANWIDTH:-78}
|
||||
export MANROFFOPT="-c"
|
||||
export BAT_THEME="ansi"
|
||||
|
||||
# bat pager
|
||||
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
|
||||
|
||||
#local path
|
||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||
|
Loading…
Reference in New Issue
Block a user