TTY=`ps |head -n 2|tail -n 1|awk '{print $2}'`
RIP=`w|grep $TTY|awk '{print $3}'`
case $RIP in
        10.0.100.162 )
                export EDITOR=joe
                ;;
        * )
                export EDITOR=nano
                ;;
esac