Revert "Don't use zsh/rc.d system"

This reverts commit a7834176ec.
This commit is contained in:
Henrik Lissner 2019-12-08 23:56:58 -05:00
parent a7834176ec
commit ee84fa45a2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 12 additions and 8 deletions

View file

@ -2,7 +2,7 @@ for dir in $XDG_CONFIG_HOME/*/bin(N); do
export PATH="$dir:$PATH"
done
for file in $XDG_CONFIG_HOME/*/env.zsh(N); do
for file in $XDG_CONFIG_HOME/zsh/rc.d/env.*.zsh(N); do
source $file
done

View file

@ -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/*/aliases.zsh(N); do
for file in $XDG_CONFIG_HOME/zsh/rc.d/aliases.*.zsh(N); do
source $file
done

View file

@ -20,8 +20,7 @@ in
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
home-manager.users.hlissner.xdg.configFile = {
# 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; };
"zsh/rc.d/aliases.emacs.zsh".source = <config/emacs/aliases.zsh>;
"zsh/rc.d/env.emacs.zsh".source = <config/emacs/env.zsh>;
};
}

View file

@ -14,6 +14,6 @@
};
home-manager.users.hlissner.xdg.configFile = {
"vim" = { source = <config/vim>; recursive = true; };
"zsh/rc.d/aliases.vim.zsh".source = <config/vim/aliases.zsh>;
};
}

View file

@ -7,6 +7,8 @@
];
home-manager.users.hlissner.xdg.configFile = {
"git" = { source = <config/git>; recursive = true; };
"git/config".source = <config/git/config>;
"git/ignore".source = <config/git/ignore>;
"zsh/rc.d/aliases.git.zsh".source = <config/git/aliases.zsh>;
};
}

View file

@ -6,6 +6,9 @@
];
home-manager.users.hlissner.xdg.configFile = {
"ncmpcpp" = { source = <config/ncmpcpp>; recursive = true; };
"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>;
};
}