bash ~ zsh wip

This commit is contained in:
2025-09-29 21:52:02 -06:00
parent ba8d491cf7
commit 0beab15f24
7 changed files with 136 additions and 65 deletions

View File

@@ -14,7 +14,7 @@
"doom/templates/programming.org".source = ../../dotfiles/doom/templates/programming.org;
};
services.lorri.enable = true;
programs.bash.shellAliases = {
programs.${config.my.shell.type}.shellAliases = {
edit = "emacsclient -t";
e = "edit";
};

View File

@@ -5,6 +5,7 @@
...
}:
let
shellType = config.my.shell.type;
packages = builtins.attrValues {
inherit (pkgs)
nixfmt-rfc-style # formatting
@@ -31,7 +32,7 @@ in
};
config = lib.mkIf config.my.dev.nix.enable {
users.users.jawz = { inherit packages; };
home-manager.users.jawz.programs.bash.shellAliases = {
home-manager.users.jawz.programs.${shellType}.shellAliases = {
nixformat = ''
nix run unstable#deadnix -- -e && \
nix run unstable#nixfmt-tree && \