Added colored journal and tail output on follow

This commit is contained in:
Dirk Alders 2025-03-02 15:31:14 +01:00
parent 2de045a45e
commit cecf7f31f4
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
function journalctl --wraps='`which journalctl` | ccze -A' --description 'alias journalctl=journalctl | ccze -A'
if string match -qr -- ".*-f.*" "$argv"
command journalctl $argv | ccze -A
else
command journalctl $argv
end
end

View File

@ -0,0 +1,8 @@
function tail --wraps='journalctl' --description 'journalctl $argv | ccze -A'
if string match -qir -- ".*-f.*" "$argv"
command tail $argv | ccze -A
else
command tail $argv
end
end