mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
yazi: add config, and shell wrapper
This commit is contained in:
parent
1144351375
commit
34f696607a
3 changed files with 24 additions and 0 deletions
8
config/fish/functions/yaz.fish
Normal file
8
config/fish/functions/yaz.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function yaz
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue