#!/bin/fish function qd set -l x ( pgrep -i "discord" | head -n1 ) if test $status -eq 0 kill $x end end