Added colored journal and tail output on follow
This commit is contained in:
parent
2de045a45e
commit
cecf7f31f4
8
fish_cfg/functions/journalctl.fish
Normal file
8
fish_cfg/functions/journalctl.fish
Normal 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
|
8
fish_cfg/functions/tail.fish
Normal file
8
fish_cfg/functions/tail.fish
Normal 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
|
Loading…
x
Reference in New Issue
Block a user