From 0e0e9669547e45ea6cca2de4044c1a384fd0fe55 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";