This commit is contained in:
Mira Kristipati 2024-06-25 13:20:56 -04:00
parent 025d14ee2e
commit 5ae1c1fe3b
3 changed files with 13 additions and 3 deletions

View file

@ -38,6 +38,8 @@ bindkey -v
# make file name completion case-insensitive
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
zstyle 'fzf-tab:complete:cd:*' fzf-preview `ls $realpath`
zstyle 'fzf-tab:complete:__zoxide_z:*' fzf-preview `ls $realpath`
@ -142,7 +144,16 @@ fi
# if checkCommand direnv; then
# eval "$(direnv hook zsh)"
# fi
if checkCommand yazi; then
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi
rm -f -- "$tmp"
}
fi
if checkCommand mirafetch; then
RUST_BACKTRACE=1 mirafetch
fi

@ -1 +1 @@
Subproject commit e3a99eb8f20c358f8376579594c0ebbf62c1db55
Subproject commit ba85f279ae5f90d9eb3c1ba250a6849e8365fe0d

View file

@ -39,7 +39,6 @@ apply = ["defer-more"]
[plugins.fzf-tab]
github = 'Aloxaf/fzf-tab'
apply = ["defer"]
# [plugins.zsh-cargo-completion]
# github = 'MenkeTechnologies/zsh-cargo-completion'