Fix: General home-manager.users."${sys.username}".home.shellAliases loading too late; breaks running "fetch" in zsh.initExtra
This commit is contained in:
parent
ee812b92c6
commit
373d1e1fe8
@ -1,4 +1,11 @@
|
|||||||
{ sys, pkgs, usr, flake, ... }: {
|
{ sys, pkgs, usr, flake, ... }: let
|
||||||
|
aliases = {
|
||||||
|
cat = "bat --paging=never --color=always";
|
||||||
|
ls = "eza";
|
||||||
|
tree = "eza --tree";
|
||||||
|
fetch = "fastfetch";
|
||||||
|
};
|
||||||
|
in {
|
||||||
users.users."${sys.username}".shell = pkgs.${sys.shellPackage};
|
users.users."${sys.username}".shell = pkgs.${sys.shellPackage};
|
||||||
programs."${sys.shellPackage}".enable = true;
|
programs."${sys.shellPackage}".enable = true;
|
||||||
home-manager.users."${sys.username}" = {
|
home-manager.users."${sys.username}" = {
|
||||||
@ -309,12 +316,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = aliases;
|
||||||
cat = "bat --paging=never --color=always";
|
|
||||||
ls = "eza";
|
|
||||||
tree = "eza --tree";
|
|
||||||
fetch = "fastfetch";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -322,6 +324,7 @@
|
|||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
shellAliases = aliases;
|
||||||
history = {
|
history = {
|
||||||
share = true;
|
share = true;
|
||||||
save = 10000;
|
save = 10000;
|
||||||
@ -352,6 +355,5 @@
|
|||||||
fetch
|
fetch
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user