scripts reorganize
This commit is contained in:
7
scripts/fish-functions/yazi.fish
Normal file
7
scripts/fish-functions/yazi.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
set tempfile (mktemp -t "yazi-cwd.XXX")
|
||||
command yazi $argv --cwd-file=$tempfile
|
||||
|
||||
if read -z cwd < "$tempfile"; and [ "$cwd" != "$PWD" ]; and test -d "$cwd"
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
command rm -f -- "$tempfile"
|
||||
Reference in New Issue
Block a user