mirror of
https://github.com/kmein/niveum
synced 2026-03-18 11:01:07 +01:00
packages: add unfinished
This commit is contained in:
12
packages/_todo/fkill
Executable file
12
packages/_todo/fkill
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$UID" != "0" ]; then
|
||||
pid=$(ps -f -u $UID | sed 1d | fzf -m | awk '{print $2}')
|
||||
else
|
||||
pid=$(ps -ef | sed 1d | fzf -m | awk '{print $2}')
|
||||
fi
|
||||
|
||||
if [ "x$pid" != "x" ]
|
||||
then
|
||||
echo $pid | xargs kill -${1:-9}
|
||||
fi
|
||||
Reference in New Issue
Block a user