#opens a new screen for ssh with the title set to the last argument passed to
#ssh, generally something like 'jnewland@foo.com'
function ssh() {
eval last_arg=\$$#
screen -t "$last_arg" ssh "$@";
}
#SSH Auto Completion of Remote Hosts
SSH_COMPLETE=( $(cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | egrep -v [0123456789]) )
complete -o default -W "${SSH_COMPLETE[*]}" ssh