mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-10-27 19:20:38 +01:00
Update .config/fish/functions/y.fish
Update .config/yazi/keymap.toml
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
|
||||
Reference in New Issue
Block a user