-
Notifications
You must be signed in to change notification settings - Fork 9
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
FR: Have pxtree pxtree
work.
#127
Comments
A number of shells provide the shell PID using So you could do What's your usecase? What do you intend to use the shell's / terminal's PID for? I'm not necessarily against this, but I do want to understand what the root problem is first! |
I've wanted to find the tmux process I was in and/or the terminal I was in.
pxtree $fish_pid
would probably work fine for me, but I didn't think of it at the time.
This could also be an option, `pxtree --self`.
This is not a crucial feature, of course.
…On Sun, Jun 9, 2024, 12:48 AM Johan Walles ***@***.***> wrote:
A number of shells provide the shell PID using echo $PID. In fish
<https://github.com/fish-shell/fish-shell> you can echo $fish_pid.
What's your usecase? What do you intend to use the shell's / terminal's
PID for?
I'm not necessarily against this, but I do want to understand what the
root problem is first!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 out itself and shows nothing.I wish it worked. I am not sure whether the best solution would be to except
pxtree pxtree
, or to simply disable the self-filtering behavior forpxtree
. I suppose there could also be apxtree --self
option.ptop
might also benefit from being able to show its own tree. Perhaps it would be good to disable self-filtering in tree mode.The text was updated successfully, but these errors were encountered: