fix: use correct directory pathing
This commit is contained in:
parent
1ce2420b91
commit
8c6561ea0e
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user