I constantly find myself accidentally typing pkill in git-bash and then it not being supported because, you know, it’s not a windows command.
So I quickly wrote a function for it and put it in the .bashrc file under my users home directory.
Below is the code snippet – .bashrc:
function pkill(){
wmic Path win32_process Where "CommandLine Like '%$2%'" Call Terminate
}
Invoked like this:

Thank you, works for me just i have to put it inside .bash_profile instead of .bashrc.
LikeLike