mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 10:51:49 +08:00
Compare commits
2 Commits
245eb2e76b
...
48c14ac3fe
Author | SHA1 | Date | |
---|---|---|---|
|
48c14ac3fe | ||
|
17315c0dfa |
8
.zshrc
8
.zshrc
@ -32,18 +32,22 @@ if ! command -v bat &> /dev/null ; then
|
|||||||
zinit light sharkdp/bat
|
zinit light sharkdp/bat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v direnv &> /dev/null ; then
|
||||||
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||||
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
||||||
pick"direnv" src="zhook.zsh" for \
|
pick"direnv" src="zhook.zsh" for \
|
||||||
direnv/direnv
|
direnv/direnv
|
||||||
|
fi
|
||||||
|
|
||||||
autoload -Uz _zinit
|
autoload -Uz _zinit
|
||||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||||
|
|
||||||
|
# Set ls colors for GNU/Linux, BSDs doesn't need this
|
||||||
|
if [[ $(uname) = "Linux" ]]; then
|
||||||
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
||||||
|
fi
|
||||||
|
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall
|
||||||
|
|
||||||
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
||||||
zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix
|
zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix
|
||||||
zstyle ':completion:*' completions 1
|
zstyle ':completion:*' completions 1
|
||||||
@ -113,5 +117,5 @@ export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
|
|||||||
|
|
||||||
# local path
|
# local path
|
||||||
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/.cache/go/bin:${HOME}/.cache/cargo/bin:${HOME}/.local/share/nvim/mason/bin"
|
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/.cache/go/bin:${HOME}/.cargo/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||||
export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH" # ccache support
|
export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH" # ccache support
|
||||||
|
Loading…
Reference in New Issue
Block a user