all repos

dotfiles @ 230a3918467e19bdee16d6c7a05d4cc3dab063ad

i use rach linux btw

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
remove stuff i dont use, 3 days 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