diff --git a/config/aliases.nu b/config/aliases.nu index 8a3ca66..6dc92b0 100644 --- a/config/aliases.nu +++ b/config/aliases.nu @@ -137,4 +137,8 @@ def pst [] { } # shortcut for yazi -alias y = yazi +def --env y [] { + let cwd_file = mktemp -t + yazi --cwd-file $cwd_file + cd (cat $cwd_file) +}