Is there way of knowing the command's process id in preexec_functions?
Closed this issue · 4 comments
KentVu commented
Is there way of knowing the command's process id in preexec_functions?
d630 commented
No, that's not possible per definition
KentVu commented
And BTW there are no postexec hooks as I can see, is that correct?
d630 commented
prompt hooks can be interpreted as "postexec" hooks
KentVu commented
Thanks, I know that's prompt_command hook but that's not what I desired.
I just want to know if there's a way to display the current running process id on the title bar.
May be I should go parsing ps
's output for now.
Thanks again for your cooperation.