diff --git a/functions/install_ohmyzsh_plugins/install.sh b/functions/install_ohmyzsh_plugins/install.sh index de43759..0b212bf 100755 --- a/functions/install_ohmyzsh_plugins/install.sh +++ b/functions/install_ohmyzsh_plugins/install.sh @@ -4,6 +4,6 @@ install_ohmyzsh_plugins() { # installs plugins for ohmyzsh for repo in "$@" do - git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins clone --depth=1 "$repo" + git -C "${ZSH_CUSTOM:-${ZSH:-$HOME/.oh-my-zsh}/custom}/plugins" clone --depth=1 "$repo" done }