Merge pull request #90 from Rynaro/rubist-way

Add Rubist using shell way
This commit is contained in:
Luke Stephens (hakluke) 2020-01-09 23:32:11 +10:00 committed by GitHub
commit 4a1a0882ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,20 @@ Credit: @wodny
3. Run `rim`. 3. Run `rim`.
4. Exit `rim` using a borrowed command, ie. `:q!`. 4. Exit `rim` using a borrowed command, ie. `:q!`.
## The lazy rubist using shell way
Credit: @rynaro
```bash
$ ruby -e 'system("killall -9 vim")'
```
## The rubist way
Credit: @rynaro
```bash
$ ruby -e 'pid = `pidof vim`; Process.kill(9, pid.to_i)'
```
## The Colon-less way ## The Colon-less way
Credit: @w181496 Credit: @w181496