Merge pull request #24 from kpumuk/patch-1

Added "ps-less process tree way"
This commit is contained in:
Luke Stephens (hakluke) 2019-09-28 08:04:19 +10:00 committed by GitHub
commit d5de6e6d20
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