10 lines
178 B
Plaintext
10 lines
178 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Interactively select a process to kill.
|
||
|
|
||
|
pid=$(ps -ef | sed 1d | gui-fzf -m | awk '{print $2}')
|
||
|
|
||
|
if [[ $pid ]]; then
|
||
|
xargs kill -${1:-9} <<< "$pid"
|
||
|
fi
|