From 34854a7329dff00e6ddade22e8b078747e8c088a Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 7 Feb 2024 15:52:33 +0100 Subject: [PATCH] Even better yazi --- config/aliases.nu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) +}