caseykneale / VIMKiller

Exiting VIM is hard; sometimes we need to take drastic measures
MIT License
1.22k stars 16 forks source link

indiscriminate process termination #7

Open lochiiconnectivity opened 4 years ago

lochiiconnectivity commented 4 years ago

https://github.com/caseykneale/VIMKiller/blob/aa689fcb9de1f3cac6e8385dcd16f70e5d99fb0f/Julia%20Code/arduino.jl#L15

Not great, you'll get false positives this way

$ perl -e '$0="vision"; sleep 10;' & ps aux | grep -ie " vi"
[1] 74174
user           74176   0.0  0.0  2455444   1392 s005  R+    8:30am   0:00.01 grep -ie  vi
user           74174   0.0  0.0  2456660   2848 s005  R     8:30am   0:00.01 vision

Probably better to do egrep " vi[m]*$" instead

arkku commented 4 years ago

See also #13

caseykneale commented 4 years ago

We appreciate this brave suggestion to this project. We are working on a version 2.0 at present. Your noble deed may become the cornerstone of preventing millions from emotional harm.