From 3dae735cb35bc18ca22f3d74d8e911a37c8db0f8 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Sun, 11 Jan 2026 19:27:19 +0100 Subject: [PATCH] add SHELL variable to info command, and properly handle unset env vars --- src/fingers/commands/info.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fingers/commands/info.cr b/src/fingers/commands/info.cr index 4ba1b20..3b5f652 100644 --- a/src/fingers/commands/info.cr +++ b/src/fingers/commands/info.cr @@ -15,7 +15,8 @@ class Fingers::Commands::Info < Cling::Command ["log-path", "#{Fingers::Dirs::LOG_PATH}"], ["installation-method", "#{WIZARD_INSTALLATION_METHOD || "manual"}"], ["tmux-version", `tmux -V`.chomp], - ["TERM", ENV["TERM"] || "not set"], + ["TERM", ENV["TERM"]? || "not set"], + ["SHELL", ENV["SHELL"]? || "not set"], ["crystal-version", Crystal::VERSION] ]