initial work

This commit is contained in:
Linus Dierheimer
2021-02-18 22:25:36 +01:00
commit ebb14afb26
28 changed files with 948 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "fastfetch.h"
#include <string.h>
void ffPrintShell(FFstate* state)
{
char* shellPath = getenv("SHELL");
char* shellName = strrchr(shellPath, '/');
if(shellName == NULL)
shellName = shellPath;
else if(shellName[0] == '/')
++shellName;
ffPrintLogoAndKey(state, "Shell");
printf("%s\n", shellName);
}