Created
August 22, 2014 03:01
-
-
Save kminiatures/2b7b72d9b1036cbc1292 to your computer and use it in GitHub Desktop.
incremental search, the process you want to 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(){ | |
proc=`ps aux | peco` | |
pid=`echo "$proc" | awk '{print $2}'` | |
echo "kill pid:$pid. [$proc]" | |
kill $pid | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment