#!/bin/zsh
#dep:alacritty tmux mosh
if [[ "$1" == "-S" ]]; then
shift
server=${1};
else
server="qwerty";
fi
exec alacritty -t Weechat -e tmux new-session mosh "${server}" -- tmux attach "$@" -t weechat