mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
yazi: update shell integrations and docs
This commit is contained in:
parent
8cedd63eed
commit
a462e7315d
3 changed files with 11 additions and 11 deletions
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
let
|
||||
shellIntegration = ''
|
||||
def-env ya [] {
|
||||
let tmp = (mktemp -t "yazi-cwd.XXXXX")
|
||||
def --env ya [] {
|
||||
let tmp = $"($env.TEMP)(char path_sep)yazi-cwd." + (random chars -l 5)
|
||||
yazi --cwd-file $tmp
|
||||
let cwd = (cat -- $tmp)
|
||||
let cwd = (open $tmp)
|
||||
if $cwd != "" and $cwd != $env.PWD {
|
||||
cd $cwd
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue