pull xonsh aliases from global aliases
This commit is contained in:
parent
2e8ca0ee0d
commit
fc0b3eb1df
2 changed files with 2 additions and 4 deletions
|
@ -87,6 +87,7 @@ in
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
":q" = "exit";
|
":q" = "exit";
|
||||||
"ls" = "eza";
|
"ls" = "eza";
|
||||||
|
"lix" = "nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
|
|
|
@ -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; [
|
||||||
|
|
Loading…
Reference in a new issue