Files
nix-config/homeConfigs/global/fileManager.nix
tomoron fb2b3f80ad
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 1m59s
home : fix file manager config, add r2modman
2025-09-24 23:50:45 +02:00

17 lines
373 B
Nix

{ ... }:
{
programs.yazi = {
enable = true;
settings.mgr.sort_dir_first=false;
};
programs.bash.bashrcExtra = ''
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d "" cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
'';
}