From 699b6b8e33fc900bdf07324456ed9e073bc13692 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 8 Feb 2023 14:44:20 +0000 Subject: [PATCH] home: zsh: include local-only config file Useful for configuration options that should remain secret. --- home/zsh/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/zsh/default.nix b/home/zsh/default.nix index a134a05..bd26903 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -57,6 +57,11 @@ in source ${./completion-styles.zsh} source ${./extra-mappings.zsh} source ${./options.zsh} + + # Source local configuration + if [ -f "$ZDOTDIR/zshrc.local" ]; then + source "$ZDOTDIR/zshrc.local" + fi ''; localVariables = {