Why Nostr? What is Njump?
2023-09-14 14:34:57
in reply to

jespada on Nostr: #+begin_src elisp (defun kill-proc (proc) "Kill process PROC identified by its PID or ...

#+begin_src elisp
(defun kill-proc (proc)
"Kill process PROC identified by its PID or name."
(if (string-match-p "^[0-9]+$" proc)
(shell-command (format "kill -9 %s" proc))
(shell-command (format "pkill -9 %s" proc))))

(kill-proc "vim")

#+end_src
Author Public Key
npub1747ceatm52f6wexdxre5v88zrv9rsjw9cq6nxwg6zp6yzfsz7lysxd4uzf