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";