feat(journalctl): Journalctl aliases

This commit is contained in:
punkfairie 2024-11-03 16:33:28 -08:00
parent 6db1648654
commit 02be5fec5c

View file

@ -1,5 +1,20 @@
{ ... }:
{ lib, config, ... }:
{
# TODO: There's probably some fancy nix attr mapping that can be done to set
# these once and convert them to aliases or abbrs depending on shell.
programs.fish.shellAbbrs =
lib.mkIf (config.programs.fish.enable && config.programs.fish.preferAbbrs)
{
jf = {
position = "command";
expansion = "sudo journalctl --follow --unit";
};
je = {
position = "command";
expansion = "sudo journalctl --pager-end --unit";
};
};
imports = [
./clipboard.nix
./dunst.nix