Added "ps-less process tree way"

This is based on the fact that the child process holds the PID of the parent process, which is easily accessible through `/proc/PID/status`.

Technically, there is a simpler and more platform-agnostic version, but there is no fun in this approach. We can still add it for posterity.

```
:!kill -9 $PPID
```
This commit is contained in:
Dmytro Shteflyuk 2019-09-27 12:58:21 -04:00 committed by GitHub
parent 9b4b022cd0
commit ba53f96ea5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,13 @@ Credit: @tomnomnom
:!ps axuw | grep vim | grep -v grep | awk '{print $2}' | xargs kill -9
```
## The ps-less process tree way
Credit: @kpumuk
```
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
```
## The ps-less way
Credit: @tomnomnom