#!/usr/local/bin/fish set -l cmds "fcitx5" for cmd in $cmds echo "[ $cmd ] killing existing" pkill -9 $cmd echo "[ $cmd ] starting..." $cmd & end