Don't use zsh/rc.d system
Instead, we just have zsh read $XDG_CONFIG_HOME/*/{aliases,env}.zsh files.
This commit is contained in:
parent
9ec3f96131
commit
a7834176ec
|
@ -2,7 +2,7 @@ for dir in $XDG_CONFIG_HOME/*/bin(N); do
|
|||
export PATH="$dir:$PATH"
|
||||
done
|
||||
|
||||
for file in $XDG_CONFIG_HOME/zsh/rc.d/env.*.zsh(N); do
|
||||
for file in $XDG_CONFIG_HOME/*/env.zsh(N); do
|
||||
source $file
|
||||
done
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ source $ZDOTDIR/config.zsh
|
|||
source $ZDOTDIR/keybinds.zsh
|
||||
source $ZDOTDIR/completion.zsh
|
||||
source $ZDOTDIR/aliases.zsh
|
||||
for file in $XDG_CONFIG_HOME/zsh/rc.d/aliases.*.zsh(N); do
|
||||
for file in $XDG_CONFIG_HOME/*/aliases.zsh(N); do
|
||||
source $file
|
||||
done
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ in
|
|||
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
||||
|
||||
home-manager.users.hlissner.xdg.configFile = {
|
||||
"zsh/rc.d/aliases.emacs.zsh".source = <config/emacs/aliases.zsh>;
|
||||
"zsh/rc.d/env.emacs.zsh".source = <config/emacs/env.zsh>;
|
||||
# Avoid "emacs" because Emacs HEAD respects XDG conventions and we're only
|
||||
# using this directory to store extra zsh config for my nix dotfiles.
|
||||
"emacscfg" = { source = <config/emacs>; recursive = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
};
|
||||
|
||||
home-manager.users.hlissner.xdg.configFile = {
|
||||
"zsh/rc.d/aliases.vim.zsh".source = <config/vim/aliases.zsh>;
|
||||
"vim" = { source = <config/vim>; recursive = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
];
|
||||
|
||||
home-manager.users.hlissner.xdg.configFile = {
|
||||
"git/config".source = <config/git/config>;
|
||||
"git/ignore".source = <config/git/ignore>;
|
||||
"zsh/rc.d/aliases.git.zsh".source = <config/git/aliases.zsh>;
|
||||
"git" = { source = <config/git>; recursive = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
];
|
||||
|
||||
home-manager.users.hlissner.xdg.configFile = {
|
||||
"zsh/rc.d/aliases.ncmpcpp.zsh".source = <config/ncmpcpp/aliases.zsh>;
|
||||
"zsh/rc.d/env.ncmpcpp.zsh".source = <config/ncmpcpp/env.zsh>;
|
||||
"ncmpcpp/config".source = <config/ncmpcpp/config>;
|
||||
"ncmpcpp/bindings".source = <config/ncmpcpp/bindings>;
|
||||
"ncmpcpp" = { source = <config/ncmpcpp>; recursive = true; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue