fish: Add a rust-gdb helper command

This commit is contained in:
Sanchayan Maity 2021-09-23 11:09:14 +05:30
parent ccdb81f9b5
commit 2fb77b64bc
1 changed files with 4 additions and 0 deletions

View File

@ -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