mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 14:10:11 +01:00
TerminalShell: code refactor
This commit is contained in:
@@ -235,10 +235,6 @@ static bool getShellVersionWinPowerShell(FFstrbuf* exe, FFstrbuf* version) {
|
||||
#endif
|
||||
|
||||
bool fftsGetShellVersion(FFstrbuf* exe, const char* exeName, FFstrbuf* version) {
|
||||
if (!instance.config.general.detectVersion) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ffStrEqualsIgnCase(exeName, "sh")) { // #849
|
||||
return false;
|
||||
}
|
||||
@@ -727,10 +723,6 @@ static bool getTerminalVersionConEmu(FFstrbuf* exe, FFstrbuf* version) {
|
||||
#endif
|
||||
|
||||
bool fftsGetTerminalVersion(FFstrbuf* processName, FF_A_UNUSED FFstrbuf* exe, FFstrbuf* version) {
|
||||
if (!instance.config.general.detectVersion) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
|
||||
if (ffStrbufEqualS(processName, "com.termux")) {
|
||||
|
||||
Reference in New Issue
Block a user