feat: add oh my zsh

This commit is contained in:
Price Hiller 2022-07-30 23:40:34 -05:00
parent 9e95d06ae1
commit 7e3e6e2545
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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}"