yazi plugins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user