irc (422B)
1 #!/bin/sh 2 3 test -z "${FUZZER}" && { printf "FUZZER not set\n"; exit 1; } 4 5 type ii || exit 1 6 7 CHATS="irc.freenode.net 8 irc.libera.chat" 9 10 startii() { 11 pick=`echo "${CHATS}" | ${FUZZER}` 12 ii -s "${pick}" -n $IRC_NICK & 13 } 14 15 startvim() { 16 vim "+packadd birck.vim | Birck" 17 } 18 19 20 iipid="$(pgrep ii)" 21 22 if [ -n "${iipid}" ]; then 23 printf "ii is already running with pid: %s\n" "${iipid}" 24 startvim 25 else 26 startii 27 startvim 28 fi 29