fork/home-manager
git clone https://git.julia.blue/fork/home-manager
7413408b
master
1{ ...} : 2 3let 4shellIntegration = '' 5function ya 6set tmp (mktemp -t "yazi-cwd.XXXXX") 7yazi --cwd-file="$tmp" 8if set cwd (cat -- "$tmp") && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ] 9cd -- "$cwd" 10end 11rm -f -- "$tmp" 12end 13'' ; 14in { 15programs . fish . enable = true ; 16 17programs . yazi = { 18enable = true ; 19enableFishIntegration = true ; 20}; 21 22test . stubs . yazi = { }; 23 24nmt . script = '' 25assertFileContains home-files/.config/fish/config.fish ' ${ shellIntegration } ' 26'' ; 27}