Created
September 24, 2014 02:37
-
-
Save nysalor/4ee598cb8eeb4966f6ed to your computer and use it in GitHub Desktop.
peco-kill
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
function peco-kill () { | |
kill $(ps aux | peco --query "$LBUFFER" | awk '{ print $2 }') | |
} | |
zle -N peco-kill | |
alias pk="peco-kill" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment