zsh: move GHQ_ROOT to home variable
Alan Pearce alan@alanpearce.eu
Sun, 06 Aug 2023 20:07:33 +0200
1 files changed, 4 insertions(+), 1 deletions(-)
jump to
M user/settings/zsh.nix → user/settings/zsh.nix
@@ -43,6 +43,10 @@ zsh-completions up ]; + home.sessionVariables = { + GHQ_ROOT = lib.mkDefault "${config.home.homeDirectory}/projects"; + }; + programs.zsh = { enable = true; @@ -227,7 +231,6 @@ ''; 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