chore(shell): showing only the executable name instead of full path

This commit is contained in:
2026-06-01 22:09:39 +03:00
parent f90137b4c0
commit 64827aa86d
+3
View File
@@ -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 "";