From 8cb680311d99f5144ded3091b6800fd02491ed25 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 13 Aug 2025 13:38:08 +0200 Subject: [PATCH] Ver-1.2.1 --- use less to show logs ~ Credit to: rtunreal --- nyx/bash/nyx-tui.sh | 3 +-- nyx/nyx-tui.nix | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nyx/bash/nyx-tui.sh b/nyx/bash/nyx-tui.sh index 072aa84..d1d0944 100644 --- a/nyx/bash/nyx-tui.sh +++ b/nyx/bash/nyx-tui.sh @@ -226,8 +226,7 @@ action_view_logs() { tmp="$(mktemp)" lastlog="$(find "$log_dir" -type f -name '*.log' -printf '%T@ %p\n' 2>/dev/null | sort -nr | awk 'NR==1{print $2}')" if [[ -n "${lastlog:-}" && -f "$lastlog" ]]; then - tail -n 300 "$lastlog" > "$tmp" - d_textbox "Last Rebuild Log: $(basename "$lastlog")" "$tmp" + less <"$lastlog" else d_msg "No logs found in ${log_dir}" fi diff --git a/nyx/nyx-tui.nix b/nyx/nyx-tui.nix index c8f755b..053c31d 100644 --- a/nyx/nyx-tui.nix +++ b/nyx/nyx-tui.nix @@ -16,7 +16,7 @@ let [ (toString nyxCfg.logDir) (toString nyxCfg.nixDirectory) - "1.2.0" + "1.2.1" "${pkgs.dialog}/bin/dialog" ] src;