diff --git a/home/common/zsh.nix b/home/common/zsh.nix index 934ce8a..38da592 100644 --- a/home/common/zsh.nix +++ b/home/common/zsh.nix @@ -115,6 +115,11 @@ if [[ -n "$BUBBLEWRAP_DIR" ]]; then RPS1="{{$BUBBLEWRAP_DIR}}" fi + + # Recompile .zcompdump if stale + if [[ -f ~/.zcompdump && ( ! -f ~/.zcompdump.zwc || ~/.zcompdump -nt ~/.zcompdump.zwc ) ]]; then + zcompile ~/.zcompdump + fi ''; };