mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Fixes "ComputerName: not set" issue #2155
This commit is contained in:
parent
c79e5a97a9
commit
d4d768d884
1 changed files with 1 additions and 7 deletions
|
|
@ -38,13 +38,7 @@ for plugin ($plugins); do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Figure out the SHORT hostname
|
SHORT_HOST=$(hostname -s)
|
||||||
if [ -n "$commands[scutil]" ]; then
|
|
||||||
# OS X
|
|
||||||
SHORT_HOST=$(scutil --get ComputerName)
|
|
||||||
else
|
|
||||||
SHORT_HOST=${HOST/.*/}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Save the location of the current completion dump file.
|
# Save the location of the current completion dump file.
|
||||||
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
|
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue