diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 6c19917..613182e 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -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