mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-20 20:36:28 +02:00
Merge pull request #22 from Cheezmeister/patch-1
The {Microsoft, Passive, Passive-Aggressive} Way
This commit is contained in:
commit
f5c6cca60e
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -126,6 +126,25 @@ Credit: @dbalatero
|
|||
let script="activate application \"Activity Monitor\"\ntell application \"System Events\"\n\tkeystroke \"f\" using {option down, command down}\n\tkeystroke \"vim\"\n\n\ttell process \"Activity Monitor\"\n\t\ttell outline 1 of scroll area 1 of window 1\n\t\t\tselect row 1\n\n\t\t\tkeystroke \"q\" using {option down, command down}\n\t\t\tkey code 36\n\t\tend tell\n\tend tell\nend tell\n" | call writefile(split(script, "\n", 1), '/tmp/exit-vim.scpt', 'b') | !osascript /tmp/exit-vim.scpt
|
||||
```
|
||||
|
||||
## The Passive Way
|
||||
|
||||
_**Walk away.**_
|
||||
|
||||
## The Passive-Agressive Way
|
||||
|
||||
```
|
||||
!bash -c "💣(){ 💣|💣& };💣"
|
||||
```
|
||||
|
||||
*...then walk away.* (n.b. That's a [fork bomb](https://en.wikipedia.org/wiki/Fork_bomb#Bash), please don't try at home.)
|
||||
|
||||
## The Microsoft Way
|
||||
Credit: @cheezmeister
|
||||
|
||||
```
|
||||
!powershell.exe /c "get-process gvim | stop-process"
|
||||
```
|
||||
|
||||
## The C way
|
||||
Credit: @dbalatero
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue