1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-14 06:51:50 +08:00

Optimize zsh

This commit is contained in:
Ryan 2023-12-13 14:04:24 +08:00
parent 4a6f6a0ad0
commit cba85e6295

9
.zshrc
View File

@ -30,9 +30,11 @@ zinit wait lucid for \
zinit ice wait lucid atinit"bindkey '' autosuggest-execute" atload'_zsh_autosuggest_start' zinit ice wait lucid atinit"bindkey '' autosuggest-execute" atload'_zsh_autosuggest_start'
zinit light zsh-users/zsh-autosuggestions zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-history-substring-search zinit ice wait lucid
zinit light hlissner/zsh-autopair zinit load hlissner/zsh-autopair
zinit light zsh-users/zsh-completions zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-history-substring-search
# Software # Software
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat" zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
@ -122,9 +124,6 @@ export MANWIDTH=${MANWIDTH:-78}
export MANROFFOPT="-c" export MANROFFOPT="-c"
export BAT_THEME="ansi" export BAT_THEME="ansi"
# bat pager
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
#local path #local path
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin" 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" export MANPATH="${MANPATH}:${HOME}/.local/share/man"