From 2fb77b64bced4919e0cef38735bc47f3d03c272a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 23 Sep 2021 11:09:14 +0530 Subject: [PATCH] fish: Add a rust-gdb helper command --- fish/.config/fish/config.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index b1e96dc..f0740c6 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -348,6 +348,10 @@ function gdbp --description "Attach to a python process" gdb python3 (ps -e | fzf | awk '{print $1}' | head -1) end +function gdbr --description "Start a command/process with rust-gdb" + rust-gdb --args $argv +end + function pst --description "Show process tree of a process" set proc (ps -e | fzf | awk '{print $1}' | head -1) pstree -H $proc $proc