How to edit/delete a .dot_file on mac without using Terminal

There is a way to open hidden files, even if normally they are not shown in Finder. You can edit .bash_profile and comment out the lines that are causing problems or just delete everything to make the entire file empty.

  1. Open a plain text editor, for example TextEdit
  2. Press Command + o
  3. Navigate to your home directory
  4. If you don't see .bash_profile, then press Command + Shift + . to show hidden files (on my US keyboard layout, Shift + . is actually >, so perhaps the real shortcut is actually Command + >)
  5. Select .bash_profile, fix the problem, and save it

Tags:

Bash

Osx

Editors