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 = {
":q" = "exit";
"ls" = "eza";
"lix" = "nix";
};
programs.tmux = {

View file

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