✨ feat(journalctl): Journalctl aliases
This commit is contained in:
parent
6db1648654
commit
02be5fec5c
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue