zsh: fix history migration
Alan Pearce alan@alanpearce.eu
Tue, 16 Jun 2020 13:06:42 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M user/settings/zsh.nix → user/settings/zsh.nix
@@ -31,7 +31,8 @@ ]; 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 '';