pull xonsh aliases from global aliases

This commit is contained in:
Grimmauld 2024-05-08 00:05:17 +02:00
parent 2e8ca0ee0d
commit fc0b3eb1df
Signed by: Grimmauld
GPG key ID: C2946668769F91FB
2 changed files with 2 additions and 4 deletions

View file

@ -87,6 +87,7 @@ in
environment.shellAliases = { environment.shellAliases = {
":q" = "exit"; ":q" = "exit";
"ls" = "eza"; "ls" = "eza";
"lix" = "nix";
}; };
programs.tmux = { programs.tmux = {

View file

@ -17,10 +17,7 @@ in
programs.xonsh = { programs.xonsh = {
enable = true; enable = true;
config = '' config = lib.concatLines (lib.mapAttrsToList (name: value: ''aliases["${name}"] = "${value}"'') config.environment.shellAliases);
aliases[":q"] = "exit"
aliases["ls"] = "eza"
'';
package = pkgs.xonsh.override { package = pkgs.xonsh.override {
extraPackages = extraPackages =
ps: with ps; [ ps: with ps; [