How to Edit Your .bash_profile File

The bash_profile file is a hidden file that contains various settings and preferences that are run on startup for Terminal, including the PATH.

It’s actually super easy to edit. You simply need to open it in your favorite text editor. (I use Sublime Text) For example, if you are in your home directory, you can run

sublime .bash_profile

If you’re not in your home directory, add ~/ in front of it:

sublime ~/.bash_profile

Now you will have your .bash_profile file open in your text editor, and you can edit at will and save.

See, pretty easy!



One thought on “How to Edit Your .bash_profile File

  1. Pingback: Add Git Autocomplete to Terminal | What I learned today

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s