yazi on terminal start

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-09-26 02:54:01 +02:00
parent dfaf24c9e1
commit 059abbf549

View File

@@ -90,9 +90,14 @@ lib.mkIf (user != "tv")
set -g fish_greeting
if not set -q IN_NIX_SHELL
nxfetch
# yazi
set tmp (mktemp -t "yazi-cwd.XXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
cd -- "$cwd"
end
rm -f -- "$tmp"
end
# ${pkgs.starship}/bin/starship init fish | source
# ${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
'';
functions = {
# gpg = '';