feat: add install for autojump
This commit is contained in:
parent
e56f5de52f
commit
a7405831fd
@ -19,6 +19,9 @@ export PYENV_ROOT="${HOME}/.local/share/pyenv"
|
|||||||
export PATH="${PATH}:${PYENV_ROOT}/bin"
|
export PATH="${PATH}:${PYENV_ROOT}/bin"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
### Autojump ###
|
||||||
|
source "${HOME}/.local/share/autojump/share/autojump/autojump.zsh"
|
||||||
|
|
||||||
### MAC ##
|
### MAC ##
|
||||||
if [[ "$OSTYPE" = "darwin"* ]]; then
|
if [[ "$OSTYPE" = "darwin"* ]]; then
|
||||||
# Set Homebrew env variables
|
# Set Homebrew env variables
|
||||||
|
23
install.bash
23
install.bash
@ -129,6 +129,16 @@ install-cargo-binary() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install-autojump() {
|
||||||
|
local install_path="${1}/autojump"
|
||||||
|
git clone "https://github.com/wting/autojump.git" "${install_path}" || return 1
|
||||||
|
(
|
||||||
|
cd "${install_path}"
|
||||||
|
python3 "install.py"
|
||||||
|
) || return 1
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
check-script-deps() {
|
check-script-deps() {
|
||||||
local commands_to_check=(
|
local commands_to_check=(
|
||||||
git
|
git
|
||||||
@ -284,9 +294,18 @@ main() {
|
|||||||
|
|
||||||
log "info" "Installing ${GREEN}Pyenv${RESET_BOLD}"
|
log "info" "Installing ${GREEN}Pyenv${RESET_BOLD}"
|
||||||
if ! install-pyenv "${DEPS_PATH}"; then
|
if ! install-pyenv "${DEPS_PATH}"; then
|
||||||
log "info" "Failed to install ${GREEN}Pyenv${RESET_BOLD}"
|
log "error" "Failed to install ${GREEN}Pyenv${RESET_BOLD}"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
log "info"
|
log "info" "Finished installing ${GREEN}Pyenv${RESET_BOLD}"
|
||||||
|
print-break
|
||||||
|
|
||||||
|
log "info" "Installing ${GREEN}autojump${RESET_BOLD}"
|
||||||
|
if ! install-autojump; then
|
||||||
|
log "error" "Failed to install ${GREEN}autojump${RESET_BOLD}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
log "info" "Finished installing ${GREEN}autojump${RESET_BOLD}"
|
||||||
|
|
||||||
log "info" "Install ${GREEN}Oh My ZSH${RESET_BOLD}"
|
log "info" "Install ${GREEN}Oh My ZSH${RESET_BOLD}"
|
||||||
install-omz "${DEPS_PATH}"
|
install-omz "${DEPS_PATH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user