Updated config
This commit is contained in:
8
.config/fish/functions/f.fish
Normal file
8
.config/fish/functions/f.fish
Normal file
@ -0,0 +1,8 @@
|
||||
function f
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
Reference in New Issue
Block a user