diff --git a/.config/zsh/config/omz/init.zsh b/.config/zsh/config/omz/init.zsh index b09bcd8..4508921 100644 --- a/.config/zsh/config/omz/init.zsh +++ b/.config/zsh/config/omz/init.zsh @@ -34,7 +34,7 @@ configure() { init() { local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz" - export ZSH="${wkdir}/omz/.oh-my-zsh" + export ZSH="${HOME}/.local/share/omz" export ZSH_CUSTOM="${wkdir}/" configure diff --git a/install.bash b/install.bash index 411bfe5..d3fdf92 100644 --- a/install.bash +++ b/install.bash @@ -114,6 +114,15 @@ install-rust() { } +install-omz() { + local install_path="${1}/omz" + if ! [[ -e "${install_path}" ]]; then + git clone https://github.com/ohmyzsh/ohmyzsh.git "${install_path}" + else + log "info" "${GREEN}oh-my-zsh${RESET_BOLD} already installed, skipping" + fi +} + install-cargo-binary() { local binary="${1}" cargo install "${binary}"