Files
nix-config/homeConfigs/global/fileManager.nix
tomoron 9a95e511e4
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m0s
WIP: refactor homeeConfigs
2025-09-24 14:13:12 +02:00

17 lines
389 B
Nix

{ ... }:
{
programs.yazi = {
enable = true;
settings.mgr.sort_dir_first=false;
programs.bash.bashExtra = ''
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"
}
'';
};
}