[ Michael Prokop ]
* zshrc: mention http://en.wikipedia.org/wiki/List_of_airports_by_ICAO_code
in weather() [thanks, gebi]
+ * zshrc: set $NAME in screen title only if $HOSTNAME is set
-- Michael Prokop <mika@grml.org> Fri, 11 Jan 2008 00:56:22 +0100
preexec () {
[[ -n $NOPRECMD ]] && return 0
# set hostname if not running on host with name 'grml'
- if [[ "$HOSTNAME" != $(hostname) ]] ; then
+ if [[ -n "$HOSTNAME" ]] && [[ "$HOSTNAME" != $(hostname) ]] ; then
NAME="@$HOSTNAME"
fi
# get the name of the program currently running and hostname of local machine