#!/bin/bash set -e; . /usr/local/lib/err; set +e dossh=true if (( $# >= 1 )); then remote=$1 else remote=b8.nz if systemctl --quiet is-active profanity || [[ $HOSTNAME == kd ]]; then dossh=false fi fi if $dossh; then # IANK_BASHRC_RUN because if prof-remote dies for some reason, we # I dont want konsole to disappear. export IANK_BASHRC_RUN="prof-remote $remote" konsole --profile profanity else konsole --profile profanity -e screen -RD -S profanity fi