fish: Add helpers for coredumpctl
This commit is contained in:
parent
e1cfc0408d
commit
a7e7ac968f
1 changed files with 14 additions and 0 deletions
|
@ -353,6 +353,20 @@ function pst --description "Show process tree of a process"
|
||||||
pstree -H $proc $proc
|
pstree -H $proc $proc
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function cdi --description "Select a coredump to run coredumpctl info"
|
||||||
|
coredumpctl list --reverse | awk -F" " '$9 == "present"' | fzf | read -l result
|
||||||
|
coredumpctl info (echo $result | awk -F" " '{print $5}')
|
||||||
|
end
|
||||||
|
|
||||||
|
function cdg --description "coredumpctl gdb on last crashed process"
|
||||||
|
coredumpctl gdb
|
||||||
|
end
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
fzf_key_bindings
|
fzf_key_bindings
|
||||||
|
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
|
|
Loading…
Reference in a new issue