All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m0s
17 lines
389 B
Nix
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"
|
|
}
|
|
'';
|
|
};
|
|
}
|