yazi on terminal start
This commit is contained in:
@@ -90,9 +90,14 @@ lib.mkIf (user != "tv")
|
|||||||
set -g fish_greeting
|
set -g fish_greeting
|
||||||
if not set -q IN_NIX_SHELL
|
if not set -q IN_NIX_SHELL
|
||||||
nxfetch
|
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
|
end
|
||||||
# ${pkgs.starship}/bin/starship init fish | source
|
|
||||||
# ${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
|
|
||||||
'';
|
'';
|
||||||
functions = {
|
functions = {
|
||||||
# gpg = '';
|
# gpg = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user