From 986e34637a0b15e7c02ebef14f73585583a5bcbd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 16 Jun 2020 13:06:42 +0200 Subject: zsh: fix history migration --- user/settings/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix index 0efda5de..d5bdaf5c 100644 --- a/user/settings/zsh.nix +++ b/user/settings/zsh.nix @@ -31,7 +31,8 @@ in home.activation.linkOldZshHistory = config.lib.dag.entryAfter ["writeBoundary"] '' if [[ ! -f ''${XDG_DATA_HOME}/zsh/history ]]; then - ln ${toString ./.cache/zsh/history} ''${XDG_DATA_HOME}/zsh/history + mkdir -p ''${XDG_DATA_HOME}/zsh/ + ln ~/.cache/zsh/history ''${XDG_DATA_HOME}/zsh/history fi ''; -- cgit 1.4.1