Ray's Knowledge Base
Unlock

Install shell plugins through dotfile hooks rather than vendoring them

PreferenceVerified 30 Sep 2026Holds anywhere
Preference. A rule, why it holds, and how to apply it.

Rule#

Shell plugins are welcome, but their installation must be self-contained through the dotfile manager's hook. Do not clone plugin repositories directly into the managed dotfile repository. Do not require Homebrew for these plugins.

Why#

The user explicitly allowed plugins but rejected cloning them into the doot repository. They asked for the existing hook mechanism instead.

How to apply#

Keep the plugin list and installation hook in the managed configuration. Have the hook install plugins outside the source repository. Preserve existing environment exports and aliases when replacing a shell config.

Also found by searching

  • git status in dotfiles repo shows zsh-autosuggestions/ and zsh-syntax-highlighting/ cloned plugin directories untracked
  • I want zsh plugins in my dotfile setup but don't want plugin repos cloned into the dotfiles repo itself
  • how should I install shell plugins like zsh-autosuggestions with my doot dotfile manager without Homebrew?
  • vendoring oh-my-zsh plugins as git submodules in dotfiles vs installing them from a dotfile manager hook
  • I want zsh plugins in my dotfile manager but not git cloned into the dotfiles repo
  • how should I install shell plugins like autosuggestions with doot without homebrew?
  • user rejected vendoring plugin repos into the managed dotfiles repository, what is the right approach
  • set up fish or zsh plugins via a dotfile manager hook instead of submodules