diff options
author | Alan Pearce | 2023-08-06 20:07:33 +0200 |
---|---|---|
committer | Alan Pearce | 2023-08-06 20:13:34 +0200 |
commit | 5c759ae232f178d2730b35bc3f248c500f16a4a1 (patch) | |
tree | 5eddc18337ff16db680332ff0669e1d548a8b6b0 /user | |
parent | 425606c401e08026729af63dde44566ed150eb8e (diff) | |
download | nixfiles-5c759ae232f178d2730b35bc3f248c500f16a4a1.tar.lz nixfiles-5c759ae232f178d2730b35bc3f248c500f16a4a1.tar.zst nixfiles-5c759ae232f178d2730b35bc3f248c500f16a4a1.zip |
zsh: move GHQ_ROOT to home variable
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/zsh.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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 |