add SHELL variable to info command, and properly handle unset env vars

This commit is contained in:
Jorge Morante 2026-01-11 19:27:19 +01:00
parent 8451588fd4
commit 3dae735cb3

View file

@ -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]
]