fix: use omz-init
This commit is contained in:
parent
213c587406
commit
09f1034ef2
@ -4,52 +4,10 @@ configure() {
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
}
|
||||
|
||||
init-omz() {
|
||||
# This has to break spec because omz will source EVERYTHING inside of the
|
||||
# omz directory :(
|
||||
|
||||
### Autojump ###
|
||||
source "${HOME}/.local/share/autojump/etc/profile.d/autojump.sh"
|
||||
|
||||
plugins=(
|
||||
git
|
||||
zsh-autosuggestions
|
||||
zsh-completions
|
||||
zsh-syntax-highlighting
|
||||
colored-man-pages
|
||||
pip
|
||||
extract
|
||||
fzf-tab
|
||||
autojump
|
||||
aws
|
||||
docker
|
||||
docker-compose
|
||||
nmap
|
||||
npm
|
||||
python
|
||||
zsh-vi-mode
|
||||
zsh-kitty
|
||||
rust
|
||||
dotnet
|
||||
)
|
||||
|
||||
if [[ "${OSTYPE}" = "darwin"* ]]; then
|
||||
plugins +=(
|
||||
macos
|
||||
)
|
||||
fi
|
||||
|
||||
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
|
||||
export ZSH="${HOME}/.local/share/omz"
|
||||
export ZSH_CUSTOM="${wkdir}/"
|
||||
export OMZ_INIT_RAN=true
|
||||
source "${ZSH}/oh-my-zsh.sh"
|
||||
}
|
||||
|
||||
init() {
|
||||
local wkdir="${BASE_ZSH_CONFIG_DIR}/config"
|
||||
source "${wkdir}/themes/init.zsh"
|
||||
source "${wkdir}/omz/init.zsh"
|
||||
source "${wkdir}/omz-init.zsh"
|
||||
source "${wkdir}/profile/init.zsh"
|
||||
source "${wkdir}/style/init.zsh"
|
||||
configure
|
||||
|
47
.config/zsh/config/omz-init.zsh
Normal file
47
.config/zsh/config/omz-init.zsh
Normal file
@ -0,0 +1,47 @@
|
||||
# This has to break spec because omz will source EVERYTHING inside of the
|
||||
# omz directory :(
|
||||
|
||||
configure() {
|
||||
### Autojump ###
|
||||
source "${HOME}/.local/share/autojump/etc/profile.d/autojump.sh"
|
||||
|
||||
plugins=(
|
||||
git
|
||||
zsh-autosuggestions
|
||||
zsh-completions
|
||||
zsh-syntax-highlighting
|
||||
colored-man-pages
|
||||
pip
|
||||
extract
|
||||
fzf-tab
|
||||
autojump
|
||||
aws
|
||||
docker
|
||||
docker-compose
|
||||
nmap
|
||||
npm
|
||||
python
|
||||
zsh-vi-mode
|
||||
zsh-kitty
|
||||
rust
|
||||
dotnet
|
||||
)
|
||||
|
||||
if [[ "${OSTYPE}" = "darwin"* ]]; then
|
||||
plugins +=(
|
||||
macos
|
||||
)
|
||||
fi
|
||||
|
||||
source "${ZSH}/oh-my-zsh.sh"
|
||||
|
||||
}
|
||||
|
||||
init() {
|
||||
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
|
||||
export ZSH="${HOME}/.local/share/omz"
|
||||
export ZSH_CUSTOM="${wkdir}/"
|
||||
|
||||
}
|
||||
|
||||
init
|
Loading…
Reference in New Issue
Block a user