fix: use correct directory pathing

This commit is contained in:
Price Hiller 2022-07-30 19:11:38 -05:00
parent 1ce2420b91
commit 8c6561ea0e
7 changed files with 25 additions and 15 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env zsh
init() {
FPATH="${FPATH}:${BASE_ZSH_CONFIG_DIR}/config/completions/completions"
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/completions"
FPATH="${FPATH}:${wkdir}/completions"
autoload -Uz compinit
compinit

View File

@ -5,11 +5,12 @@ configure() {
}
init() {
source ./themes/init.zsh
source ./omz/init.zsh
source ./programs/init.zsh
source ./profile/init.zsh
source ./style/init.zsh
local wkdir="${BASE_ZSH_CONFIG_DIR}/config"
source "${wkdir}/themes/init.zsh"
source "${wkdir}/omz/init.zsh"
source "${wkdir}/programs/init.zsh"
source "${wkdir}/profile/init.zsh"
source "${wkdir}/style/init.zsh"
configure
}

View File

@ -30,12 +30,12 @@ configure() {
fi
export plugins
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
}
init() {
export ZSH="${OMZ_DIRS}/omz/omz/.oh-my-zsh"
export ZSH_CUSTOM="${OMZ_DIRS}/"
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
export ZSH="${wkdir}/omz/.oh-my-zsh"
export ZSH_CUSTOM="${wkdir}/"
configure
source "${ZSH}/oh-my-zsh.sh"

View File

@ -5,9 +5,12 @@ configure() {
}
init() {
source ./profile/options.zsh
source ./profile/env.zsh
source ./profile/pathing.zsh
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/profile"
source "${wkdir}/profile/options.zsh"
source "${wkdir}/profile/env.zsh"
source "${wkdir}/profile/functions.zsh"
source "${wkdir}/profile/aliases.zsh"
configure
}

View File

@ -48,6 +48,9 @@ if [[ "$OSTYPE" = "darwin"* ]]; then
# Zsh
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
_import_custom_bash_completions
autoload -Uz compinit
compinit
fi
fi

View File

@ -10,11 +10,13 @@
# omz.
configure() {
source ./config.zsh
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/themes"
source "${wkdir}/config.zsh"
}
init() {
source ./powerlevel10k/powerlevel10k.zsh-theme
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/themes"
source "${wkdir}/powerlevel10k/powerlevel10k.zsh-theme"
}
init

View File

@ -1,4 +1,4 @@
#!/usr/bin/env zsh
export BASE_ZSH_CONFIG_DIR="$(dirname -- "$( readlink -f -- "${0}" )")"
source ./config/init.zsh
source "${BASE_ZSH_CONFIG_DIR}/config/init.zsh"