dotfiles/fish/.config/fish/functions/cdi.fish

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
257 B
Fish
Raw Permalink Normal View History

function cdi --description 'Select a coredump to run coredumpctl info'
coredumpctl list --reverse | awk -F" " '$9 == "present"' | fzf | read -l result
if test -n "$result"
coredumpctl info (echo $result | awk -F" " '{print $5}')
end
end