feat(journalctl): Journalctl aliases

This commit is contained in:
punkfairie 2024-11-03 16:33:28 -08:00
parent 0db80951a2
commit 6e2602a75f
Signed by: punkfairie
GPG key ID: 01823C057725C266

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