Merge pull request #4 from Jorengarenar/master

Added "The hardware way"
This commit is contained in:
Luke Stephens (hakluke) 2019-09-26 20:09:01 +10:00 committed by GitHub
commit b7525d0891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,11 @@ Locally (the cheaty, lazy way, why even bother):
$ curl "http://localhost:8888/$(ps aux | grep -E -o 'kill-vi-[0-9]+')"
```
## The hardware way
Credit: @Jorengarenar
_**Pull the plug out**_
## The timeout way
Credit: @aarongorka
Before running vim, make sure to set a timeout:
@ -67,3 +72,4 @@ In `vi`:
```
:!sudo reboot
```