all repos

dotfiles @ de6a1005d51efa8403ce4b0946d29d7fc5665169

i use rach linux btw

dotfiles/config/fish/functions/yaz.fish (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
yazi: add config, and shell wrapper, 7 months ago
1
function yaz
2
  set tmp (mktemp -t "yazi-cwd.XXXXXX")
3
  yazi $argv --cwd-file="$tmp"
4
  if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
5
    builtin cd -- "$cwd"
6
  end
7
  rm -f -- "$tmp"
8
end