李通洲
abc6c0593c
Chore: IndentPPDirectives: BeforeHash [ci skip]
2026-04-15 16:17:08 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
Carter Li
2fe2a21bfe
Terminal: reports sshd if $SSH_TTY is not available
2025-11-25 14:33:35 +08:00
Carter Li
5d13389827
TerminalShell: uses absolute path when detecting version if available
...
Closes #2067
2025-11-25 09:10:30 +08:00
李通洲
8b8eb6f290
TerminalShell (Linux): ignores run-parts
...
Ref: #2048
2025-11-11 10:10:47 +08:00
李通洲
aa40366a49
Terminal: ignores WSL2 unknown process for terminal detection
2025-09-04 22:31:59 +08:00
Carter Li
74e0732390
Common (GNU): more __GNU__ tests
2025-08-24 21:40:22 +08:00
李通洲
f2f9b10b18
TerminalShell: remove special handling of hyfetch
...
Ref: https://github.com/search?q=repo%3Ahykilpikonna%2Fhyfetch%20FFTS_IGNORE_PARENT&type=code
2025-08-24 00:00:10 +08:00
Carter Li
cb13d43a7a
TerminalShell (Linux): always ignore pid1 (v2)
2025-08-21 00:19:52 +08:00
Carter Li
bd7190ca6d
TerminalShell (Linux): always ignore pid1
2025-08-21 00:12:41 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
2406015c81
Terminal (Linux): ignore init and systemd
2025-06-30 19:41:59 +08:00
李通洲
768238cb46
TerminalShell (Linux): ignore script
...
Fix #1761
2025-05-17 18:04:41 +08:00
李通洲
d9d34ccbbb
Terminal (macOS): fix Warp Terminal pid detection
2025-03-21 10:08:26 +08:00
Carter Li
d1a98fe69f
Terminal (Haiku): add pretty name for Haiku Terminal
2025-02-12 22:47:37 +00:00
Carter Li
c005bc50c2
TerminalShell (Linux): ignore proot
2025-01-14 13:46:59 +08:00
Carter Li
60ff89c794
Terminal (Linux): fix detection of pk-command-not-found
...
Fix #1467
2025-01-03 10:32:16 +08:00
Carter Li
f973572c5a
TerminalShell (Linux): relax detection of terminals in NixOS
...
Fix #1479
2025-01-03 10:18:44 +08:00
Carter Li
c5d4b20729
TerminalShell (Android): ignore proot
2024-12-20 15:57:17 +08:00
李通洲
4665fdd145
Global: make it compile on NetBSD
...
Doesn't work yet.
2024-10-27 11:43:36 +08:00
李通洲
937b2e41ed
Terminal (Linux): remove invalid info when fail to detect terminal by process tracing
2024-10-03 21:58:37 +08:00
李通洲
fc947468a9
Terminal: ignore sudo and su
...
Fix #1283
2024-09-22 10:32:22 +08:00
李通洲
03c95e5cad
Shell: improve performance of bash and zsh version detection
2024-08-27 14:06:45 +08:00
李通洲
f22b8ede02
TerminalShell: ignore the parent process if $FFTS_IGNORE_PARENT is set to 1
...
Fix #1205
2024-08-23 15:52:14 +08:00
Leah Amelia Chen
d81cd50f64
Shell (Linux): don't detect hyfetch as shell on NixOS ( #1149 )
...
On NixOS, Hyfetch has been placed in a "wrapper script" in order to set the correct PATH that it needs to run correctly.
As a result, the actual Hyfetch executable has been renamed `.hyfetch-wrapped`, which results in this check failing to detect Hyfetch on NixOS properly.
With this patch the logic has been changed to check if the program name contains the string `hyfetch`, which should work for the NixOS case.
2024-08-04 20:13:28 +08:00
Carter Li
873285b083
TerminalShell: improve SSH detection
2024-07-26 23:53:46 +08:00
李通洲
3b156e819b
Terminal (Linux): support ptyxis version detection
2024-07-01 23:56:19 +08:00
李通洲
93792822c0
Shell: fix fastfetch is detected as shell when abused
...
Fix #994
2024-06-05 16:11:52 +08:00
李通洲
90690ba315
InitSystem: add new module
...
Fix #974
2024-05-29 11:14:39 +08:00
李通洲
3811bb1be4
TerminalShell: move process info query logic into common place
2024-05-28 23:43:15 +08:00
Shu Niu and Carter Li
758ddae344
macOS: Add support for old MacOS version ( #936 )
...
* Add support for old MacOS version, fix-1.
* Add support for old MacOS version, fix-2.
* Add support for old MacOS version with fixing metal gpu api.
* Update disk_bsd.c
* Update disk_bsd.c
* Update gpu_apple.m
* Update monitor_apple.m
* Update os_apple.m
* Update wifi_apple.m
* Update camera_apple.m
* Update camera_apple.m
---------
Co-authored-by: Carter Li <[email protected] >
2024-05-19 09:31:08 +08:00
李通洲
92abf3e063
TerminalShell (Linux): ignore valgrind
2024-05-18 00:34:08 +08:00
李通洲
02e5232bda
TerminalShell: ignore clifm
...
Ref: https://github.com/leo-arch/clifm/issues/289
2024-05-17 13:57:07 +08:00
Souma
ec0af17fb5
Terminal (macOS): fix compatibility with (*term) ( #909 )
...
Ignore <shell> (<char>term).
This is because Fig(<shell> (figterm)) migrated to CodeWhisperer(<shell> (cwterm)) and CodeWhisperer renamed to Q(<shell> (qterm)).
Future changes will all be ignored by this change.
Related: #676
2024-05-09 19:39:17 +08:00
Carter Li
299bc7468f
Terminal (Linux): fix exePath detection
2024-05-08 09:54:33 +08:00
Carter Li
6bb748869e
Terminal (macOS): fix Apple Terminal detection
...
Fix #878
2024-05-05 13:36:14 +08:00
李通洲
688d9b00ab
Shell (Linux): don't detect hyfetch as shell
2024-05-02 15:19:43 +08:00
李通洲
6831c095ec
TerminalShell (Linux): actually fix #814
2024-04-27 23:12:45 +08:00
李通洲
e157b9a51f
TerminalShell (Linux): fix nixos wrapped process name
...
Fix #814
2024-04-27 16:31:39 +08:00
李通洲
9860fb67d4
TerminalShell (Linux): if /bin/sh is set to default shell, use it
...
Fix #798
2024-04-18 09:22:08 +08:00
李通洲
ec25ca9fc7
Shell: ignore time
2024-04-15 20:01:40 +08:00
李通洲
7c5eb021ee
Terminal (Linux): ignore chezmoi
...
Fix #762
2024-03-18 09:03:10 +08:00
李通洲
1084cf3523
Terminal (Linux): actually ignore SessionLeader
2024-03-09 11:52:31 +08:00
李通洲
2a125e226b
Terminal (Linux): ignore SessionLeader
...
I don't know why it's there, but let's ignore it for now
2024-03-07 22:38:03 +08:00
李通洲
a3c3f3829d
Shell (Linux): always detect tty id
2024-02-27 16:35:47 +08:00
李通洲
79b7b15b46
Terminal: detect tty name
...
Fix #738
2024-02-27 16:19:42 +08:00
李通洲
cfe22f9524
Terminal (Linux): try fixing #707 (v2)
2024-02-01 17:56:40 +08:00