Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ps minimalistic by default #55

Closed
matu3ba opened this issue Apr 13, 2020 · 7 comments
Closed

ps minimalistic by default #55

matu3ba opened this issue Apr 13, 2020 · 7 comments
Assignees

Comments

@matu3ba
Copy link

matu3ba commented Apr 13, 2020

For users coming from ps getting the most used options to simply run (ie only showing PID TTY TIME CMD) would be useful.
The output is a bit overwhelming in size and it is not clear to me from the start how to reduce the columns or select only some of them.

@dalance dalance self-assigned this Apr 13, 2020
@dufferzafar
Copy link
Contributor

dufferzafar commented Apr 14, 2020

Yeap!

By default, procs shows all the columns. To me the most important one is command and it is shown at the end (which is understandable) but it doesn't wrap the lines, so they get chopped off!

I currently have to use it with -p always, which is not the best experience.

For now, I'll justwrite a wrapper around ps that does some color highlighting etc.

@dalance
Copy link
Owner

dalance commented Apr 15, 2020

The columns can be customized by a configuration file.
Is this insufficient?

https://github.com/dalance/procs#configuration

@dufferzafar
Copy link
Contributor

Thanks @dalance . I should've read the Readme properly then. I didn't even bother scrolling. Just downloaded the binary and tried it out. Will try making a config that works for me.

@dalance
Copy link
Owner

dalance commented Apr 15, 2020

Exactly the README is too long.
I added the links to each sections.

@matu3ba
Copy link
Author

matu3ba commented Apr 15, 2020

The columns can be customized by a configuration file.
Is this insufficient?

https://github.com/dalance/procs#configuration

I do like the flexibility of the config file. However hardcoding the config for the columns is abit restricting (in contrast to ps), but probably fine for version < 1.x.

I do assume keyword does match any output of procs. This is missing in the --help and not explained in the README.

@dalance
Copy link
Owner

dalance commented Apr 16, 2020

OK. I agree the current default config is too large.
I'll change the default config to fit 80x24 terminal like below:

image

Additionally, I'll add a message if configuration file is not found.

image

@dalance
Copy link
Owner

dalance commented Apr 20, 2020

I released v0.10.0.

@dalance dalance closed this as completed Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants