From 7807182d180ecdf716717957dd375301b76e8b42 Mon Sep 17 00:00:00 2001 From: cubernetes Date: Fri, 16 Oct 2026 01:42:07 +0200 Subject: [PATCH] cd with ls show last 10 entries --- modules/home-manager/bash.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/bash.nix b/modules/home-manager/bash.nix index d691982..0000c74 100644 --- a/modules/home-manager/bash.nix +++ b/modules/home-manager/bash.nix @@ -69,8 +69,8 @@ local -a lines mapfile -t lines < <(command ls --color=always --quoting-style=shell-escape -lArth) - if (( ''${#lines[@]} > 5 )); then - printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 5 ))"; + if (( ''${#lines[@]} > 10 )); then + printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 10 ))"; printf '%s\n' "''${lines[@]: -4}" else printf '%s\n' "''${lines[@]}"