load OhMyPosh first for a Faster feeling shell

This commit is contained in:
Snoweuph 2024-10-18 23:45:01 +02:00
parent bbfdfb16ec
commit a4b6cc1b01
Signed by: Snoweuph
GPG key ID: BEFC41DA223CEC55

14
.zshrc
View file

@ -1,3 +1,10 @@
# Oh My Posh
#########################################################
export PATH=$PATH:"$HOME/.local/bin"
OMP_EXECUTABLE="${XDG_DATA_HOME:-${HOME}/.local}/bin/oh-my-posh"
[ ! -f $OMP_EXECUTABLE ] && curl -s https://ohmyposh.dev/install.sh | bash -s
eval "$(oh-my-posh init zsh --config ~/.config/omp.toml)"
# Zinit # Zinit
######################################################### #########################################################
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
@ -14,13 +21,6 @@ zinit light zdharma-continuum/fast-syntax-highlighting
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# Oh My Posh
#########################################################
export PATH=$PATH:"$HOME/.local/bin"
OMP_EXECUTABLE="${XDG_DATA_HOME:-${HOME}/.local}/bin/oh-my-posh"
[ ! -f $OMP_EXECUTABLE ] && curl -s https://ohmyposh.dev/install.sh | bash -s
eval "$(oh-my-posh init zsh --config ~/.config/omp.toml)"
# Basic ZSH # Basic ZSH
######################################################### #########################################################