From 64827aa86d0072c9a99757f34fa396e2dc6a6eb6 Mon Sep 17 00:00:00 2001 From: murat Date: Mon, 1 Jun 2026 22:09:39 +0300 Subject: [PATCH] chore(shell): showing only the executable name instead of full path --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index fd6ceaf..31a6872 100644 --- a/main.cpp +++ b/main.cpp @@ -509,6 +509,9 @@ string getUptime() { string getShell() { string shell; shell = std::getenv("SHELL"); + + while(shell.find('/') < shell.length()) shell.erase(0, shell.find('/') + 1); + if (!shell.empty()) return shell; return "";