From 5c4bcef0a8d9c844a29cdfbc9d05969361bbc7f6 Mon Sep 17 00:00:00 2001 From: Pedro Pozzi Ferreira Date: Fri, 10 Jan 2020 21:11:05 -0300 Subject: [PATCH] Add Lazy Pythonic Way Not only rubists are lazy --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index d2dfe82..1cdb765 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,13 @@ Credit: @kpumuk :!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9 ``` +## The lazy pythonic using shell way +Credit: @PozziSan + +```bash +python -c "from os import system; system('killall -9 vim')" +```` + ## The pythonic way Credit: @hakluke