~chimo/dotfiles

1a57b931867fe5ee274473c87a3fd4f10dacc674 — chimo 4 months ago dea2070
.local/bin/libs/irssi.sh: Add "znc" profile
1 files changed, 7 insertions(+), 0 deletions(-)

M .local/bin/libs/irssi.sh
M .local/bin/libs/irssi.sh => .local/bin/libs/irssi.sh +7 -0
@@ 3,6 3,13 @@
profile="${1-}"

case "${profile}" in
    "znc")
        . ~/devel/dotfiles/.config/irssi/env

        incus exec irssi -- sh -c 'irssi -c znc_libera --config=/dev/fd/3 3<<-EOF
            $(sed '\''s/<ZNC_PASS>/'"${ZNC_PASS}"'/g'\'' .irssi/config)
EOF'
        ;;
    "twitch")
        . ~/devel/dotfiles/.config/irssi/env