fish: Add helpers for easing work with gdb
This commit is contained in:
parent
a657297158
commit
f0f12d4294
|
@ -340,6 +340,19 @@ function dotg --description "Generate gstreamer dot graph for selected file"
|
||||||
mv "$result".svg ~/Pictures/gstreamer
|
mv "$result".svg ~/Pictures/gstreamer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function gdba --description "Attach to a process"
|
||||||
|
gdb attach -p (ps -e | fzf | awk '{print $1}' | head -1)
|
||||||
|
end
|
||||||
|
|
||||||
|
function gdbp --description "Attach to a python process"
|
||||||
|
gdb python3 (ps -e | fzf | awk '{print $1}' | head -1)
|
||||||
|
end
|
||||||
|
|
||||||
|
function pst --description "Show process tree of a process"
|
||||||
|
set proc (ps -e | fzf | awk '{print $1}' | head -1)
|
||||||
|
pstree -H $proc $proc
|
||||||
|
end
|
||||||
|
|
||||||
fzf_key_bindings
|
fzf_key_bindings
|
||||||
|
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
|
|
Loading…
Reference in a new issue