feat: add oh my zsh
This commit is contained in:
parent
9e95d06ae1
commit
7e3e6e2545
@ -34,7 +34,7 @@ configure() {
|
|||||||
|
|
||||||
init() {
|
init() {
|
||||||
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
|
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}/"
|
export ZSH_CUSTOM="${wkdir}/"
|
||||||
|
|
||||||
configure
|
configure
|
||||||
|
@ -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() {
|
install-cargo-binary() {
|
||||||
local binary="${1}"
|
local binary="${1}"
|
||||||
cargo install "${binary}"
|
cargo install "${binary}"
|
||||||
|
Loading…
Reference in New Issue
Block a user