px
px copied to clipboard
ps, top and pstree for human beings
When doing `px` or `ptop` on a macOS machine, list processes inside of the container(s) as well. This will require some thinking to get `px 1234` output right. Maybe prefix...
I think it would be a great feature for `px` to also show the target process' environment variables. [*procfs* provides `/etc/"$SOME_PID"/environ`](https://man7.org/linux/man-pages/man5/proc.5.html). Executing e.g. `strings /proc/"$SOME_PID"/environ` or `cat /proc/"$SOME_PID"/environ | tr...
``` px version: 3.3.1 Python version: 3.11.4 (main, Jun 7 2023, 00:46:41) [Clang 13.0.0 (clang-1300.0.29.30)] Platform info: Darwin-20.6.0-x86_64-64bit 2023-07-02 14:58:41CEST ERROR Running ptop failed Traceback (most recent call last): File...
When searching, both in `px` and `ptop`, we should highlight what matched. So if you search for `rome` and find `Chrome`, then we should show "Ch**rome**" (note last part in...
Suggestions: - [ ] Make the tree mode default - [ ] Add a tree mode screenshot to the README? - [x] Don't indent the init process (PID 1), that...
In this case we should ignore the leading `sh -c cd XXX &&`. ``` /bin/sh -c cd '/Users/johan/src/expedition/application' && '/opt/homebrew/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home/bin/java' '-jar' '/Users/johan/src/expedition/application/target/surefire/surefirebooter-20240306073901594_3.jar' '/Users/johan/src/expedition/application/target/surefire' '2024-03-06T07-38-59_359-jvmRun1' 'surefire-20240306073901594_1tmp' 'surefire_0-20240306073901594_2tmp' ```
Examples: ``` /usr/local/Caskroom/flutter/3.0.1/flutter/bin/cache/dart-sdk/bin/dart --verbosity=error --disable-dart-dev --snapshot=/usr/local/Caskroom/flutter/3.0.1/flutter/bin/cache/flutter_tools.snapshot --snapshot-kind=app-jit --packages=/usr/local/Caskroom/flutter/3.0.1/flutter/packages/flutter_tools/.dart_tool/package_config.json --no-enable-mirrors /usr/local/Caskroom/flutter/3.0.1/flutter/packages/flutter_tools/bin/flutter_tools.dart ``` ``` /usr/local/Caskroom/flutter/3.0.1/flutter/bin/cache/dart-sdk/bin/dart devtools --machine --allow-embedding ``` ``` /usr/local/Caskroom/flutter/3.0.1/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev --packages=/usr/local/Caskroom/flutter/3.0.1/flutter/packages/flutter_tools/.dart_tool/package_config.json /usr/local/Caskroom/flutter/3.0.1/flutter/bin/cache/flutter_tools.snapshot upgrade ``` `dart --help` says: `Usage: dart [arguments]`...
When searching in tree mode, we should show at least parents of what we found, possibly children as well. Right now we only show the search hits.
I occasionally want to know the PID of the shell I'm in or of the terminal I'm in. The natural thing to do is `pxtree pxtree`, but that cleverly filters...
As demonstrated in , at least user names can contain CJK characters. We should make sure we render columns straight in this case.