mirror of https://github.com/bjeanes/dotfiles.git
Use home.shellAliases instead of setting for each shell
Home Manager includes a way to apply shellAliases to all compatible shells, it seems.wip
parent
96c6c56ba3
commit
5a7cc845f1
15
flake.nix
15
flake.nix
|
@ -155,18 +155,17 @@
|
||||||
homeModules = {
|
homeModules = {
|
||||||
# Common home-manager configuration shared between Linux and macOS.
|
# Common home-manager configuration shared between Linux and macOS.
|
||||||
common = { pkgs, system, ... }:
|
common = { pkgs, system, ... }:
|
||||||
let
|
{
|
||||||
shellAliases = {
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
];
|
||||||
|
|
||||||
|
home.shellAliases = {
|
||||||
"g" = "git";
|
"g" = "git";
|
||||||
"l" = "ls";
|
"l" = "ls";
|
||||||
"ll" = "ls -la";
|
"ll" = "ls -la";
|
||||||
"arst" = "asdf"; # Colemak home row
|
"arst" = "asdf"; # Colemak home row
|
||||||
};
|
};
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -219,7 +218,6 @@
|
||||||
};
|
};
|
||||||
programs.starship.enable = true;
|
programs.starship.enable = true;
|
||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
programs.bash.shellAliases = shellAliases;
|
|
||||||
|
|
||||||
# difftastic will show syntactical/structural changes in diffs
|
# difftastic will show syntactical/structural changes in diffs
|
||||||
# programs.git.difftastic.enable = true;
|
# programs.git.difftastic.enable = true;
|
||||||
|
@ -240,7 +238,6 @@
|
||||||
autocd = true;
|
autocd = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
inherit shellAliases;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
|
|
Loading…
Reference in New Issue