fish: Update the journalctl boot aliases

This commit is contained in:
Sanchayan Maity 2021-11-20 12:01:33 +05:30
parent 6033367d0b
commit 1c2aa05711

View file

@ -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