mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Fix compatibility with OS X
This commit is contained in:
parent
1c6b1374b3
commit
28481be1d3
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ initialize_completions() {
|
|||
local plugin
|
||||
|
||||
# Figure out the SHORT hostname, scutil is for OS X users
|
||||
short_host=$($(scutil --get ComputerName 2>/dev/null) || echo ${HOST/.*/})
|
||||
short_host=$(scutil --get ComputerName 2>/dev/null) || short_host=${HOST/.*/}
|
||||
|
||||
# Save the location of the current completion dump file.
|
||||
ZSH_COMPDUMP=${ZDOTDIR:-${HOME}}/.zcompdump-$short_host-$ZSH_VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue