From ce24471b15555b02054b3e5793328d4c51ffdf7f Mon Sep 17 00:00:00 2001 From: Nathaniel Young Date: Wed, 30 Oct 2024 04:04:52 +0000 Subject: [PATCH] refactor(functions): uses ZSH environment variable in install_ohmyzsh_plugins --- functions/install_ohmyzsh_plugins/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }