about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2015-01-04 02:02:59 +0300
committerKirill Elagin <kirelagin@gmail.com>2015-01-04 02:02:59 +0300
commit766207ca1d52db37df5ca17b9bd3bd21a03dfafd (patch)
tree7d0afc5c26b7a42c2a978e909a0339c3c88b492f /nixos
parent6b8b0fd544ee7b72da7c89151f5e5cff826ebc8a (diff)
downloadnixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.tar
nixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.tar.gz
nixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.tar.bz2
nixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.tar.lz
nixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.tar.xz
nixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.tar.zst
nixlib-766207ca1d52db37df5ca17b9bd3bd21a03dfafd.zip
zsh: profile-relative functions path
This is needed mostly for autocompletion.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/zsh/zsh.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix
index 1857371ebe8d..39f9671316ee 100644
--- a/nixos/modules/programs/zsh/zsh.nix
+++ b/nixos/modules/programs/zsh/zsh.nix
@@ -105,6 +105,10 @@ in
 
     };
 
+    environment.profileRelativeEnvVars =
+      { FPATH = [ "/share/zsh/site-functions" ];
+      };
+
     environment.etc."zshenv".text =
       ''
         # /etc/zshenv: DO NOT EDIT -- this file has been generated automatically.