dotfiles/.config/fish/functions/redisco.fish

21 lines
308 B
Fish
Raw Normal View History

function redisco
2022-09-23 05:34:50 +00:00
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
2022-09-23 05:34:50 +00:00
pkill -fi $to_kill
nohup $to_kill &> /dev/null & disown
end