Skip to content

Commit b6c2e17

Browse files
committed
Simplify zcompinit
1 parent 0cfecc3 commit b6c2e17

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

home/dot_zshrc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@ source "${ZINIT_HOME}/zinit.zsh"
2424
# Use modern completion system
2525
# ref: https://gist.github.com/ctechols/ca1035271ad134841284
2626
autoload -Uz compinit
27-
local now=$(date +"%s")
28-
local updated=$(date -r ~/.zcompdump +"%s")
29-
local threshold=$((60 * 60 * 24))
30-
if [ $((${now} - ${updated})) -gt ${threshold} ]; then
31-
compinit
32-
else
33-
# if there are new functions can be omitted by giving the option -C.
34-
compinit -C
35-
fi
27+
compinit
3628

3729
[ $(command -v dircolors) ] && eval "$(dircolors -b)"
3830

@@ -104,7 +96,7 @@ source <(fzf --zsh)
10496

10597
# pyenv
10698
if command -v pyenv 1>/dev/null 2>&1; then
107-
eval "$(pyenv init -)"
99+
eval "$(pyenv init - --no-rehash)"
108100
fi
109101

110102
# cargo

0 commit comments

Comments
 (0)