Skip to content

Commit

Permalink
restore forgotten zinit
Browse files Browse the repository at this point in the history
  • Loading branch information
varp committed Nov 12, 2024
1 parent d7dbc7a commit f3fbe33
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions dotfiles/zshrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
time_ms
echo $(time_ms) "start"
##
## zinit
##
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
echo $(time_ms) "zinit"

##
## POSIX complaint shell utitly functions and envs
##
Expand All @@ -7,7 +16,7 @@ source "$HOME/.shell/env"
source "$HOME/.shell/aliases"
source "$HOME/.shell/xvm"

time_ms
echo $(time_ms) "custom"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
Expand Down Expand Up @@ -171,4 +180,4 @@ eval "$(zoxide init --cmd cd zsh)"
##
_dedup_path

time_ms
echo $(time_ms) "end"

0 comments on commit f3fbe33

Please sign in to comment.