hostname -s takes too long if there is no internet connection, so use
%m with tcsh and \h with bash.