Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1659·btop

Smarter `argv[0]` in procs commandline display

Author: Yohe-AmCreated May 16, 2026Updated Sep 26, 2026
Labelsfeature

Is your feature request related to a problem? Please describe.

The procs panel shows the raw argv for the process in the Command column. This makes that display all but useless on small screens when the invoker uses full paths to the executable and that path is long. Doubly so when using the tree view. Triply so on executables packaged by Nix which have paths like /nix/store/k24rh0nl6zzwy8rk0k1ssqn6c4fhgwvh-btop-1.4.6/bin/btop.

Image

Describe the solution you'd like

Smart processing of the argv[0] to only show the basename in the Command column. This can be behind a config.

Htop does something similar and pretty clever here:

Image

Besides being smart about argv[0], it also collapses the executable basename name into the process name if they're the same (the common case).

Describe alternatives you've considered

  • N/A

Additional context

  • Related to #414

Source: aristocratos/btop

View original on GitHubView discussion on GitHub