How do I edit the
bash_profile? I've tried using the command
chflags but it shows the error
[Error writing. Bash_profile: Operation not permitted]
I'm using OS X Snow Leopard 10.6.8.
This question came from our site for professional and enthusiast programmers.
In most cases, the file doesn't even exist unless you specifically create it. In order to do this, you don't need
You can then edit it with whatever application you like, for example a terminal-based editor like
After you've edited the file, make sure to source the
If for some reason you don't have permissions, make sure your
If you are comformatble using vim that should work fine.