nix-dotfiles/modules/shell_aliases.nix
2021-10-18 16:01:02 +02:00

19 lines
451 B
Nix

{ pkgs, ... }:
let
shellAliases = {
"dk" = "docker";
"dkc" = "docker-compose";
"hm" = "home-manager";
"jc" = "sudo journalctl";
"jcu" = "journalctl --user";
"nf" = "find /nix/store/ -maxdepth 1 | grep";
"ns" = ''nix search nixos\\.'';
"nS" = "nix-shell";
"sc" = "sudo systemctl";
"scu" = "systemctl --user";
};
in
{
programs.bash = { inherit shellAliases; };
programs.zsh = { inherit shellAliases; };
}