scripts/misc/sweechat
Alexander Gehrke 7ba3dba2bc Add wrappers for terminals to make scripts terminal-agnostic
Scripts launching a terminal will now require x-terminal-emulator in the
path. A symlink for it can be created using `select-term.zsh`.
2021-07-05 13:11:42 +02:00

12 lines
233 B
Bash
Executable file

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