Commit Graph
24 Commits
Author SHA1 Message Date
Robby RussellandClaude Fable 5.1 8d421b6309 fix(systemadmin): make the netstat fallback reachable (#14119)
Six helpers were written as `ss ... | awk ... || netstat ... | awk ...`.
A pipeline exits with its last command's status, so a missing ss still
ended in awk exiting 0 and the netstat branch never ran. On systems
without ss, sortcons, sortconip, req20, timewait20, syn20 and port_pro
printed nothing.

Each helper now picks ss or netstat by whether ss is installed. con80
gets the same shape so the file has one idiom and no longer prints
"command not found: ss" on the way to netstat. Where both backends
share the same columns, the awk program is written once.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 17:45:05 +02:00
Robby RussellandCarlo Sala 7d1b2a25ca feat(systemadmin)!: match ports 80 and 443 in con80, req20 and http20 (#14118)
BREAKING CHANGE: the default output of `con80` and `req20`
now includes port 443. `con80 80` gives the old result

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2026-09-22 17:42:41 +02:00
Yann ILAS 9bf43f682c feat(systemadmin)!: replace clrz with pszombie (#13861)
BREAKING CHANGE: The nonfunctional clrz function has been removed.
Use pszombie to identify zombie processes and their parent processes.
2026-09-14 21:12:12 +02:00
Maksym Tymoshyk 233ec5c507 fix(systemadmin): quote awk program in webtraffic (#14030) 2026-08-30 19:15:26 +02:00
Alexander Schaber c1679a12f8 feat(systemadmin): add ping6 alias with count limit (#12697) 2024-09-27 11:39:09 +02:00
Marc Cornellà 53cb50acb5 refactor(systemadmin): use ss instead of netstat when available (#11957) 2023-10-11 20:43:55 +02:00
Marc Cornellà e55e3f0f56 fix(systemadmin): handle error for no IPv6 route in geteip (#11458) 2023-01-26 20:45:48 +01:00
Ben Iofel 4392d3a923 feat(systemadmin): color ip if shell is interactive (#11107) 2022-11-15 19:29:48 +01:00
Marc Cornellà ac82e156ca style(systemadmin): use function to avoid alias conflicts 2022-04-13 13:14:38 +02:00
Josh SorefandJosh Soref 0e41181d54 chore: fix spelling errors across the project (#10459)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2021-12-01 12:20:31 +01:00
Kevin BurkeandMarc Cornellà e86c6f5e7f style: use -n flag in head and tail commands (#10391)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-11-09 09:04:10 +01:00
Wolfgang Ladermann 1916a31153 feat(systemadmin): add IPv6 info to geteip command (#9856) 2021-04-23 16:23:26 +02:00
Marc Cornellà 02d07f3e3d fix: use $USERNAME guaranteed to always be defined in zsh
Fixes #9701
2021-03-25 12:08:00 +01:00
Joshua Pratt 1744277a68 systemadmin: correct sort order for psmem aliases (#6253) 2020-10-11 14:17:21 +02:00
Grégory DAVID d88fbe625f systemadmin: fix header line sorting in pscpu (#6167)
Inside `pscpu` and `pscpu10` aliases, remove sorting of the header line.
2020-02-10 21:18:13 +01:00
Patrick Artounian ad9a8f2d43 systemadmin: fix getip output with ifconfig (#7306) 2018-10-25 13:26:22 +02:00
DBX12 0871594f58 systemadmin: refactor plugin and fix README (#7295) 2018-10-17 19:40:20 +02:00
Janosch Schwalm 19b925e741 use https everywhere (#6574)
* use https everywhere

* use https links on the files that are left

Also, removed some broken links and updated redirections.
2018-08-07 20:42:01 +02:00
Niccolò Maggioni d923cebdb3 Updated with @mcornella suggestions 2015-08-27 11:34:53 +02:00
Niccolò Maggioni 058bbe4f02 General compatibility 2015-08-26 10:54:08 +02:00
Niccolò Maggioni a127c4f88e 'ip' command compatibility and much quicker external IP detection 2015-08-26 10:48:01 +02:00
Marc Cornellà 4310a15de5 Change all pwd calls for $PWD variable
This avoids spawning additional processes as $PWD **always** contains
the current working directory.
2014-11-06 18:33:56 +01:00
Marc Cornellà 74177c5320 Change all whoami calls for $USER variable
This avoid spawning additional processes, as the $USER variable will
**always** contain the current logged-in user.
2014-11-06 18:33:56 +01:00
MrTux 3fac127152 Correct wrong plugin file name 2014-05-28 11:23:39 +02:00