mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 20:53:14 +00:00
parent
0dab813748
commit
275f39611d
1 changed files with 18 additions and 0 deletions
|
@ -57,6 +57,24 @@ in {
|
|||
. "${profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
||||
'';
|
||||
|
||||
programs.zsh.envExtra = ''
|
||||
# Make system functions available to zsh
|
||||
() {
|
||||
setopt LOCAL_OPTIONS CASE_GLOB EXTENDED_GLOB
|
||||
|
||||
local system_fpaths=(
|
||||
# Package default
|
||||
/usr/share/zsh/site-functions(/-N)
|
||||
|
||||
# Debian
|
||||
/usr/share/zsh/functions/**/*(/-N)
|
||||
/usr/share/zsh/vendor-completions/(/-N)
|
||||
/usr/share/zsh/vendor-functions/(/-N)
|
||||
)
|
||||
fpath=(''${fpath} ''${system_fpaths})
|
||||
}
|
||||
'';
|
||||
|
||||
systemd.user.sessionVariables = let
|
||||
# https://github.com/archlinux/svntogit-packages/blob/packages/ncurses/trunk/PKGBUILD
|
||||
# https://salsa.debian.org/debian/ncurses/-/blob/master/debian/rules
|
||||
|
|
Loading…
Reference in a new issue