This commit is contained in:
2025-10-22 10:53:31 +02:00
parent ead2b2fc41
commit 7c6c8f8bff
2 changed files with 24 additions and 0 deletions

View File

@@ -574,3 +574,17 @@ pulumi:
reflector: reflector:
archlinux: archlinux:
- reflector - reflector
yazi:
archlinux:
- yazi
- ffmpeg
- 7zip
- jq
- poppler
- fd
- ripgrep
- fzf
- xsel
- zoxide
- resvg
- imagemagick

View File

@@ -379,6 +379,16 @@ tmp() {
fi fi
} }
# taken verbatim from https://yazi-rs.github.io/docs/quick-start, extended with "command" in
# the last line to not use aliased `rm`
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d '' cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
command rm -f -- "$tmp"
}
setopt PROMPT_SUBST setopt PROMPT_SUBST
autoload -Uz vcs_info autoload -Uz vcs_info