chore(zsh): tweak zshrc and move omp conf to omp/

This commit is contained in:
2024-06-15 15:39:41 +03:00
parent b0d74bad1a
commit 9542624323
4 changed files with 199 additions and 18 deletions

View File

@@ -22,6 +22,11 @@ x-have antidot && {
eval "$(antidot init)"
}
x-have oh-my-posh && {
# eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/omp/own.json)"
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/omp/own.toml)"
}
export COMPLETION_WAITING_DOTS=true
if type brew &> /dev/null; then
@@ -43,12 +48,6 @@ ANTIGEN_ZSH_PATH="$XDG_BIN_HOME/antigen.zsh"
# antigen is present
antigen use oh-my-zsh
export ZSH_TMUX_AUTOSTART=true
export ZSH_TMUX_CONFIG="$DOTFILES/config/tmux/tmux.conf"
export ZSH_TMUX_UNICODE=true
export ZSH_TMUX_AUTOQUIT=false
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
export NVM_DIR="$XDG_CONFIG_HOME/nvm"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
@@ -57,14 +56,10 @@ export ZSHZ_DATA="$XDG_STATE_HOME/z"
antigen bundle z
# these should be always available
antigen bundle tmux
antigen bundle colored-man-pages
antigen bundle command-not-found
antigen bundle ssh-agent
antigen bundle jreese/zsh-titles
antigen bundle zsh-users/zsh-completions
# these should be available if there's need
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
# nvm is a strange beast
@@ -79,10 +74,6 @@ antigen apply
[ -f "${DOTFILES}/config/fzf/fzf.zsh" ] \
&& source "${DOTFILES}/config/fzf/fzf.zsh"
x-have rbenv && {
eval "$(rbenv init - zsh)"
}
x-have pyenv && {
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
@@ -103,10 +94,6 @@ x-have pyenv && {
}
}
# eval "$(starship init zsh)"
x-have oh-my-posh && {
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)"
}
source "$DOTFILES/config/alias"
# Herd checks for a few environment variables to inject PHP binaries and configurations.