yazi plugins

This commit is contained in:
Henrik Bakken
2025-05-22 13:09:00 +02:00
parent 25a22346f8
commit 174967bd98
3 changed files with 18 additions and 0 deletions
+11
View File
@@ -167,4 +167,15 @@ def zoxide_completer [context: string] {
}
}
# yazi helper
def --env y [...args] {
let tmp = (mktemp -t "yazi-cwd.XXXXXX")
yazi ...$args --cwd-file $tmp
let cwd = (open $tmp)
if $cwd != "" and $cwd != $env.PWD {
cd $cwd
}
rm -fp $tmp
}
source ~/.oh-my-posh.nu