fish: Add helpers for easing work with gdb

This commit is contained in:
Sanchayan Maity 2021-08-13 18:22:27 +05:30
parent a657297158
commit f0f12d4294

View file

@ -340,6 +340,19 @@ function dotg --description "Generate gstreamer dot graph for selected file"
mv "$result".svg ~/Pictures/gstreamer
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
starship init fish | source