all repos

dotfiles @ 34f696607a684bb561eebeaeb66e93cec3942f8a

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