X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=sshcolourterm;fp=sshcolourterm;h=0000000000000000000000000000000000000000;hp=02ae9e13787c414484df6eb328f025e829378990;hb=819bb88d5a014a23150b8fd609d194e883958674;hpb=596624f4629703d95ef6c0d10efba2d2c36cb7c5 diff --git a/sshcolourterm b/sshcolourterm deleted file mode 100755 index 02ae9e1..0000000 --- a/sshcolourterm +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# -# $Id$ -# - -SSHCOLOURS=~/.ssh/colours - -fqdn=${1##*@} -colour= - -# Get colour by regex. -for path in $(ls "$SSHCOLOURS" | lensort -r); do - re=${path##*/} - echo "$fqdn" | grep -qs "$re" || continue - colour=$(readlink "$SSHCOLOURS/$path") - break -done - -if [ ! -z "$colour" ]; then - colour=${colour##*/} - colour=${colour##*:} - echo -e "\033]49;$colour\007" - clear -fi - -exec ${SSHTERM_SSH:-ssh} ${1+"$@"}