From 5c759ae232f178d2730b35bc3f248c500f16a4a1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 6 Aug 2023 20:07:33 +0200 Subject: zsh: move GHQ_ROOT to home variable --- user/settings/zsh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'user/settings') diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix index 209140ce..cd13391a 100644 --- a/user/settings/zsh.nix +++ b/user/settings/zsh.nix @@ -43,6 +43,10 @@ in up ]; + home.sessionVariables = { + GHQ_ROOT = lib.mkDefault "${config.home.homeDirectory}/projects"; + }; + programs.zsh = { enable = true; @@ -227,7 +231,6 @@ in initExtra = '' typeset -T GHQ_ROOT ghq_root - export GHQ_ROOT="${config.home.homeDirectory}/projects" function hist-freq-subcommands () { fc -l -m "$1*" -10000 | cut -d' ' -f4- | sort | uniq -c | sort -gr | head -n100 | less -- cgit 1.4.1