#!/bin/sh
[ `id -un` = "sam" ] || {
	exec sudo -u sam "$0" "$@"
}
if [ -n "$1" ]; then nt "$*"; fi
chotty
cd ~sam
#if [ -n "$*" ]; then
#	if [ -d "$*" ]; then
#		cd "$*"
#	elif [ -d "code/$*" ]; then
#		cd "code/$*"
#	fi
#	exec ssh "$*"
#else
	host=`basename "$0"`
	nt "$host"
	while true; do
		v ssh "$host" "$@"
		status=$?
		if [ "$#" -gt 0 ]; then
			exit $status
		fi
		echo ^C to exit
		read -t 5
	done
#fi
