diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index d1371159f..c07e8a74c 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -320,7 +320,9 @@ in ''} ${concatStrings (map (plugin: '' - source "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" + if [ -f "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" ]; then + source "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" + fi '') cfg.plugins)} # History options should be set in .zshrc and after oh-my-zsh sourcing.