FPATH="/opt/homebrew/share/zsh/site-functions:${FPATH}" autoload -Uz compinit ZSH_COMPDUMP=${ZSH_COMPDUMP:-${ZDOTDIR:-$HOME}/.zcompdump} # cache .zcompdump for about a day # shellcheck disable=SC1009,SC1073,SC1036,SC1072 if [[ -n $(find "$ZSH_COMPDUMP" -mtime -1 2>/dev/null) ]]; then compinit -C -d "$ZSH_COMPDUMP" else compinit -i -d "$ZSH_COMPDUMP"; touch "$ZSH_COMPDUMP" fi { # compile .zcompdump if [[ -s "$ZSH_COMPDUMP" && (! -s "${ZSH_COMPDUMP}.zwc" || "$ZSH_COMPDUMP" -nt "${ZSH_COMPDUMP}.zwc") ]]; then zcompile "$ZSH_COMPDUMP" fi } &!#!/bin/zsh # shellcheck disable=SC1072 { FPATH="/opt/homebrew/share/zsh/site-functions:${FPATH}" autoload -Uz compinit ZSH_COMPDUMP=${ZSH_COMPDUMP:-${ZDOTDIR:-$HOME}/.zcompdump} # cache .zcompdump for about a day if [[ -n $(find "$ZSH_COMPDUMP" -mtime -1 2>/dev/null) ]]; then compinit -C -d "$ZSH_COMPDUMP" else compinit -i -d "$ZSH_COMPDUMP"; touch "$ZSH_COMPDUMP" fi # compile .zcompdump if [[ -s "$ZSH_COMPDUMP" && (! -s "${ZSH_COMPDUMP}.zwc" || "$ZSH_COMPDUMP" -nt "${ZSH_COMPDUMP}.zwc") ]]; then zcompile "$ZSH_COMPDUMP" fi } &