Skip to content

Commit

Permalink
Add yazi alias
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavspi committed Mar 8, 2024
1 parent 29f0054 commit 0d1ab0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions home/dot_config/fish/functions/ya.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function ya
set tmp (mktemp -t "yazi-cwd.XXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
cd -- "$cwd"
end
rm -f -- "$tmp"
end

0 comments on commit 0d1ab0d

Please sign in to comment.