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

Switch to zsh-z a faster z implementation in zsh

This commit is contained in:
juan 2021-08-23 16:57:24 +08:00
parent 8aa2e9ee9d
commit 4741dd5c05

6
.zshrc
View File

@ -25,6 +25,8 @@ zinit light zsh-users/zsh-autosuggestions
zinit ice lucid wait zinit ice lucid wait
zinit light zdharma/fast-syntax-highlighting zinit light zdharma/fast-syntax-highlighting
zinit light zsh-users/zsh-history-substring-search zinit light zsh-users/zsh-history-substring-search
zinit ice lucid wait
zinit light agkozak/zsh-z
autoload -Uz _zinit autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit (( ${+_comps} )) && _comps[zinit]=_zinit
@ -62,8 +64,8 @@ autoload edit-command-line
zle -N edit-command-line zle -N edit-command-line
bindkey '' edit-command-line bindkey '' edit-command-line
export _Z_DATA="$HOME/.cache/z" export ZSHZ_CASE=smart
. $HOME/.cache/z.sh export ZSHZ_DATA="$HOME/.cache/z"
zz () { zz () {
cd `z -l $* | fzf | awk '{print $2}'` cd `z -l $* | fzf | awk '{print $2}'`
} }