Fixes "ComputerName: not set" issue #2155

This commit is contained in:
Ismail Asci 2013-10-19 15:24:40 +02:00
commit d4d768d884

View file

@ -38,13 +38,7 @@ for plugin ($plugins); do
fi
done
# Figure out the SHORT hostname
if [ -n "$commands[scutil]" ]; then
# OS X
SHORT_HOST=$(scutil --get ComputerName)
else
SHORT_HOST=${HOST/.*/}
fi
SHORT_HOST=$(hostname -s)
# Save the location of the current completion dump file.
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"