From 9aea11023da2f28da39c6522f6918b3e34bc537b Mon Sep 17 00:00:00 2001 From: Joey Territo Date: Sun, 18 Feb 2024 17:00:56 -0600 Subject: [PATCH] zsh: fix broken ZDOTDIR when path contains spaces --- modules/programs/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index c375b57cf..392d26320 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -22,7 +22,7 @@ let mapAttrsToList (k: v: ''hash -d ${k}="${v}"'') cfg.dirHashes ); - zdotdir = "$HOME/" + cfg.dotDir; + zdotdir = "$HOME/" + lib.escapeShellArg cfg.dotDir; bindkeyCommands = { emacs = "bindkey -e";