From 1c2aa05711b58c7cb0c438f5b02dadabfce1e815 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 20 Nov 2021 12:01:33 +0530 Subject: [PATCH] fish: Update the journalctl boot aliases --- fish/.config/fish/config.fish | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index e7072c4..563189e 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -38,8 +38,7 @@ alias sde="systemctl enable " alias sdd="systemctl disable " alias sfc="source ~/.config/fish/config.fish" alias icat="kitty +kitten icat (fzf)" -alias jb="journalctl -b" -alias jbl="journalctl --list-boots" +alias jb="journalctl -r -b -1" alias jf="journalctl -f" alias jk="journalctl -r -k" alias jr="journalctl -r" @@ -403,6 +402,10 @@ function pfr --description "Select a process to record performance data in given perf record -F 99 -o $argv -p $proc end +function jbl --description "Select a boot to view logs" + journalctl -r -b (journalctl --list-boots | fzf --tac | awk '{print $1}') +end + fzf_key_bindings starship init fish | source