mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 11:17:12 +02:00
Merge pull request #195 from hakluke/codingo-add-first-contact
Add first contact way
This commit is contained in:
commit
1b9a16e6e8
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
:!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
|
## The ps-less way using status files
|
||||||
Credit: @hakluke
|
Credit: @hakluke
|
||||||
|
|
||||||
|
@ -33,6 +34,10 @@ Credit: @kpumuk
|
||||||
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
|
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The first contact way
|
||||||
|
Credit: @caseyjohnellis
|
||||||
|

|
||||||
|
|
||||||
## The lazy pythonic using shell way
|
## The lazy pythonic using shell way
|
||||||
Credit: @PozziSan
|
Credit: @PozziSan
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue