1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

chore(packages): reorganize scripts

This commit is contained in:
Kierán Meinhardt
2020-04-09 16:56:47 +02:00
parent 4abc0f4221
commit c6c621baf1
26 changed files with 230 additions and 189 deletions

12
packages/scripts/fkill.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
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