all repos — nixfiles @ 986e34637a0b15e7c02ebef14f73585583a5bcbd

System and user configuration, managed by nix and home-manager

zsh: fix history migration

Alan Pearce
commit

986e34637a0b15e7c02ebef14f73585583a5bcbd

parent

228df3ab08069e5061e7c07e731e7a3da536f5ab

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M user/settings/zsh.nixuser/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 '';