mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-06-20 05:05:35 +00:00
21 lines
308 B
Fish
21 lines
308 B
Fish
function redisco
|
|
set -l to_kill discord
|
|
|
|
if test -n "$argv"
|
|
set to_kill $argv
|
|
end
|
|
|
|
pgrep -fia $to_kill
|
|
or return
|
|
|
|
read -P 'continue? [Y/n]> ' -l confirm
|
|
|
|
if test "$confirm" = 'n'
|
|
return
|
|
end
|
|
|
|
pkill -fi $to_kill
|
|
|
|
nohup $to_kill &> /dev/null & disown
|
|
end
|