Hi Edwrd T! After creating my .bash_profile, I usually just use vim to update it (vim .bash_profile). I think vim is the quickest way to edit single files. But here are other ways to edit the file in a mac os:
Open a terminal shell
Change directory to your home folder. cd ~/
Enter the command touch .bash_profile to create a new file.
Edit .bash_profile on your IDE (open .bash_profile) or enter open -e .bash_profile to open it in TextEdit.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How do you, đŸ”¥Trisha, edit your bash profile? I edit ~/.baschrc then source .bashrc but im curious if there is a better or easier way.
Hi Edwrd T! After creating my
.bash_profile
, I usually just use vim to update it (vim .bash_profile
). I think vim is the quickest way to edit single files. But here are other ways to edit the file in a mac os:cd ~/
touch .bash_profile
to create a new file..bash_profile
on your IDE (open .bash_profile
) or enteropen -e .bash_profile
to open it in TextEdit.