Merge pull request #195 from hakluke/codingo-add-first-contact

Add first contact way
This commit is contained in:
Michael Skelton 2020-06-28 00:51:23 -07:00 committed by GitHub
commit 1b9a16e6e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ Credit: @tomnomnom
:!kill -9 $(find /proc -name "cmdline" 2>/dev/null | while read procfile; do if grep -Pa '^vim\x00' "$procfile" &>/dev/null; then echo $procfile; fi; done | awk -F'/' '{print $3}' | sort -u)
```
## The ps-less way using status files
Credit: @hakluke
@ -33,6 +34,10 @@ Credit: @kpumuk
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
```
## The first contact way
Credit: @caseyjohnellis
![Jeffrey Way](assets/first-contact-way.png)
## The lazy pythonic using shell way
Credit: @PozziSan