Skip to content

Commit 486c145

Browse files
authored
Merge pull request hakluke#239 from mashuptwice/mashuptwice-patch-1
The layered Method
2 parents 1b9a16e + be39759 commit 486c145

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ Don't run this, it could break your computer.
252252
:!echo b | sudo tee -a /proc/sysrq-trigger
253253
```
254254

255+
## The layered Method
256+
Credit: @mashuptwice
257+
```
258+
:!python -c "import os ; os.system(\"ssh localhost kill -9 $(pgrep vim >tmpfile && grep -P '\d+' tmpfile | sed 's/\(.*\)/\1/g' | cat && rm tmpfile) \")"
259+
```
260+
Bonus: still stuck if multiple vim instances are running
261+
255262
## The Abstinence Method
256263
Credit: @ryanc
257264

0 commit comments

Comments
 (0)