You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 for pxtree. I suppose there could also be a pxtree --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:
ilyagr
changed the title
Have pxtree pxtree work.
FR: Have pxtree pxtree work.
Jun 8, 2024
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!
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: