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 c0956af1aea2435b712df92f8151f4674574fd1e
parent 43238c983a45a29af35989145297fb7953525d43
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Fri, 28 Nov 2014 18:53:09 +0100

add scripts to connect to iddqd

Diffstat:
M.zshrc | 2+-
Abin/iddqd-ssh-X.sh | 2++
Abin/iddqd-ssh-poster.sh | 9+++++++++
Abin/iddqd-ssh-sphere.sh | 2++
Abin/iddqd-ssh-vpn.sh | 2++
Abin/iddqd-ssh.sh | 9+++++++++
6 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/.zshrc b/.zshrc @@ -39,12 +39,12 @@ bindkey "^k" history-beginning-search-forward if [[ "$ARCH" != 'Darwin' ]]; then function open() { xdg-open $1 &> /dev/null &disown; } + function say() { echo "$@" | festival --tts; } fi function lt() { ls -ltrsa "$@" | tail; } function lT() { ls -ltrsa "$@" | head; } function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; } function fname() { find . -iname "*$@*"; } -function say() { echo "$@" | festival --tts; } function sayfile() { festival --tts $@; } # Start tmux on shell login diff --git a/bin/iddqd-ssh-X.sh b/bin/iddqd-ssh-X.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ssh -X fh.cs.au.dk -t 'ssh -X iddqd.nfit.au.dk' diff --git a/bin/iddqd-ssh-poster.sh b/bin/iddqd-ssh-poster.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [[ "$(ifconfig | grep 10.17.8)" ]]; then + echo "On geo lan, connecting directly..." + ssh -X iddqd.nfit.au.dk -t 'tmuxinator poster' +else + echo "Outside geo lan, connecting through fresh-horse..." + ssh -X fh.cs.au.dk -t 'ssh -X iddqd.nfit.au.dk -t "tmuxinator poster"' +fi diff --git a/bin/iddqd-ssh-sphere.sh b/bin/iddqd-ssh-sphere.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ssh adc@fh.cs.au.dk -t 'ssh adc@iddqd.nfit.au.dk -t "bin/tmux-dev.sh"' diff --git a/bin/iddqd-ssh-vpn.sh b/bin/iddqd-ssh-vpn.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ssh adc@iddqd.nfit.au.dk diff --git a/bin/iddqd-ssh.sh b/bin/iddqd-ssh.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [[ "$(ifconfig | grep 10.17.8)" ]]; then + echo "On geo lan, connecting directly..." + ssh iddqd.nfit.au.dk -t 'bin/tmux-dev.sh' +else + echo "Outside geo lan, connecting through fresh-horse..." + ssh fh.cs.au.dk -t 'ssh iddqd.nfit.au.dk -t "bin/tmux-dev.sh"' +fi