In ~/.bash_profile
or ~/.bashrc
(whichever you
use)
alias ebash="sudo vi ~/.bash_profile"
alias rbash="source ~/.bash_profile"
Change ~/.bash_profile
to ~/.bashrc
if you're
using the latter.
When you need to edit your bash config, you can
now type ebash
Once you save your changes and exit, you can type
rbash
to reload your bash config.