Skip to content

Instantly share code, notes, and snippets.

@dstevensio
Last active December 9, 2015 21:58
Show Gist options
  • Save dstevensio/18f689117ba232c23858 to your computer and use it in GitHub Desktop.
Save dstevensio/18f689117ba232c23858 to your computer and use it in GitHub Desktop.
Bash Aliases for bash profile changes

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment