Open ToxicFrog opened 10 months ago
I would greatly appreciate something like this!
Alternatively, some kind of regex substitution would be equally beneficial, so /nix/store/eeeeeeeeeeeeeee-prog-1.2/bin/prog
could be replaced with /n/s/…prog-1.2/bin/prog
or even just …prog
(whatever the user wants), and same for /run/current-system/sw/bin
. Though I would bet a simple choice between argv[0] and basename(argv[0]) as mentioned above would be simplest and most beneficial even for non-NixOS users who maybe want to remove /usr/local/whatever.
Is your feature request related to a problem? Please describe. I run NixOS, so most binaries live in
/nix/store/[some really long content-addressed path]/bin
. This has tragic results for the proc display on small screens (or just when it's split-screen with something else) because most of the entries incommand
are just "/nix/store/[garbage]".The
program
column helps, but some programs overwrite that so I get stuff like "Isolated Web Co /nix/store/...". I think that's firefox? But I can't tell!Describe the solution you'd like
Ideally, I would like independent control via the config file of:
My preferred configuration would probably be Program off, Command displays basename of argv[0] and all other args.
Describe alternatives you've considered Switching to tree view also switches to showing only the basename for some processes, but not all of them, and for those where it does do that, it also hides the rest of the command line.