dotfiles/fish/.config/fish/functions/cdG.fish

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

7 lines
255 B
Fish
Raw Normal View History

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