function disp() { if [[ $1 =~ ":" ]] ; then VALUE=$1 else VALUE=localhost:$1.0 fi export DISPLAY=$VALUE }