mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-03 20:26:21 +02:00
Update README.md
This commit is contained in:
parent
5e80ff9323
commit
7cd50fcc64
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -8,13 +8,6 @@ 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
|
||||
|
||||
|
@ -29,6 +22,13 @@ Credit: @hakluke
|
|||
:!find /proc -name status | while read file; do echo "$file: "; cat $file | grep vim; done | grep -B1 vim | grep -v Name | while read line; do sed 's/^\/proc\///g' | sed 's/\/.*//g'; done | xargs kill -9
|
||||
```
|
||||
|
||||
## The ps-less process tree way
|
||||
Credit: @kpumuk
|
||||
|
||||
```
|
||||
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
|
||||
```
|
||||
|
||||
## The pythonic way
|
||||
Credit: @hakluke
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue