dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 8f9eceae1e1b76fd23985b0c55a1b0d1ad49316e
parent 66c08876bc64c8a02c6f09bd0053988766a0068a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 18 Sep 2019 13:11:34 +0200

Simplify irc attach script

Diffstat:
M.local/bin/irc.sh | 17++---------------
1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/.local/bin/irc.sh b/.local/bin/irc.sh @@ -4,18 +4,5 @@ set -e USER=ircc HOST=adamsgaard.dk PORT=22 -#POSTCMD=".local/bin/tmux-irc.sh" -POSTCMD="bash -c '/usr/local/bin/tmux a'" - -UNAMESTR=$(uname) -if [ "$UNAMESTR" = 'Linux' ]; then - #autossh -t -p $PORT $USER@$HOST $POSTCMD - mosh --server=/usr/local/bin/mosh-server \ - --ssh="ssh -p $PORT" $USER@$HOST "$POSTCMD" -elif [ "$UNAMESTR" = 'Darwin' ]; then - #ssh -t -p $PORT $USER@$HOST $POSTCMD - mosh $USER@$HOST $POSTCMD -else - echo "Platform not supported" - exit 1 -fi +POSTCMD="tmux a" +mosh --ssh="ssh -p $PORT" $USER@$HOST "$POSTCMD"