From a4b6cc1b01456fcb5e7d14f189f73c2bfa1e182c Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Fri, 18 Oct 2024 23:45:01 +0200 Subject: [PATCH] load OhMyPosh first for a Faster feeling shell --- .zshrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.zshrc b/.zshrc index 6a3fd43..90fc139 100644 --- a/.zshrc +++ b/.zshrc @@ -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_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" @@ -14,13 +21,6 @@ zinit light zdharma-continuum/fast-syntax-highlighting autoload -Uz 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 #########################################################