This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ctrl+z ctrl+k | |
kill-last-process() { | |
kill -9 %% | |
zle reset-prompt | |
} | |
zle -N kill-last-process | |
bindkey '^k' kill-last-process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import signal | |
def proxy_handler(funcs): | |
def x(a, b): | |
for func in funcs: | |
func(a, b) | |
return x | |
def register_signal_handler(sig, handler): | |
l = [handler] |