From 28481be1d35aae12411b6829720939ba1212f1cc Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Mon, 24 Mar 2014 22:36:13 +0100 Subject: [PATCH] Fix compatibility with OS X --- oh-my-zsh.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh index 3cde90e8c..bbf662a55 100644 --- a/oh-my-zsh.zsh +++ b/oh-my-zsh.zsh @@ -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