From 02be5fec5c08becdd444d465d27259b86e5368eb Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 3 Nov 2024 16:33:28 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(journalctl):=20Journalctl=20al?= =?UTF-8?q?iases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/services/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/home/services/default.nix b/home/services/default.nix index 0948945..a9d18ff 100644 --- a/home/services/default.nix +++ b/home/services/default.nix @@ -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