hysteria (460B)
1 #!/bin/sh -x 2 3 if [ "$1" = "" ]; then 4 config="$HOME/.hysteria/config" 5 else 6 config=$(readlink -f "$1") 7 fi 8 . "$config" 9 10 rm -rf "$ircdir" 11 tmux new-session -s "$session" -d "hysteria-monitor \"$config\"" 12 tmux rename-window "monitor" 13 14 for h in $hosts; do 15 hysteria-connect "$h" "$config" 16 done 17 18 for c in $channels; do 19 host=$(printf '%s' "$c" | cut -d ':' -f 1) 20 channel=$(printf '%s' "$c" | cut -s -d ':' -f 2) 21 hysteria-autojoin "$host" "$channel" "$config" 22 done