dotfiles

Configuration dotfiles
git clone git://git.wimdupont.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit ae07e1f42736f7acdce1410636f076e45c9d15b3
parent 1c0356a739d91d4d954ee381c384dc513f94769c
Author: Wim Dupont <wim@wimdupont.com>
Date:   Fri, 17 May 2024 18:29:03 +0200

added nkill

Diffstat:
M.bashrc | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -63,6 +63,15 @@ function irc(){ tmux new-session -d -s irc && tmux send-keys -t irc "ii -s irc.libera.chat -n $username" Enter } +function nkill(){ + if [ -n "$1" ]; then + for pid in `ps -ef | grep $1 | grep -v $$ | grep -v "grep $1" | tr -s ' ' | cut -f2 -d' '`; do + echo "killing pid: $pid" + kill -9 "$pid" + done + fi +} + alias ls='ls --color=auto' alias ll='ls -l' alias weather='curl wttr.in'