I have an alias which attaches process named myprocess in gdb.
i.e. alias myat="gdb /path/to/myprocess $(pgrep myprocess)"
$ type myat
myat is aliased to `gdb /path/to/myprocess 23313'
This will work until myprocess dies and restarts with a new pid.
But, to be able to use the alias again, I have to reload my ~/.bashrc
Is there a better way of specifying this alias, so that I don't need to reload