added existing
This commit is contained in:
10
configs/function_usefull.fish
Normal file
10
configs/function_usefull.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# yazi file manager wrapper
|
||||
function y
|
||||
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
|
||||
Reference in New Issue
Block a user