all repos

dotfiles @ 8e14fca

my dotfiles

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

1
2
3
4
5
6
7
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