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

5 lines
218 B
Fish

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