Solved

return bash profile to default status

Posted on 2015-02-09
5
189 Views
Last Modified: 2015-02-10
I have a bash profile that has been changed and edited after installing and testing out various different CLI programs, below is the current configuration, however it is no longer functioning correctly as it was setup to use an emulator for a windows SVN system, which is no longer a supported software for MAC OS X yosemite, 10.10.1 (14B25)

I would like to edit the profile so that I can setup home-brew and use that as my package manager.

however, my bash profile backup is not restoring as expected.

Is there a set in stone procedure for starting over with the profile.

I need to find the best way to either restore to original or create a new one, Or do I need to uninstall all the software currently installed before staring over?

export PATH=/opt/subversion/bin/:$PATH

# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
-e 
export NVM_DIR="/Users/reelstuff/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

Open in new window

0
Comment
Question by:freejointventure
5 Comments
 
LVL 29

Expert Comment

by:serialband
ID: 40600027
The default OSX account has a blank or non-existant .bash_profile  You can just move or rename the current .bash_profile and start anew.
0
 
LVL 77

Expert Comment

by:arnold
ID: 40600055
look in /etc/skell/ this is the "default" initial set of config files.
.profile .bashrc .bash_profile etc.

Usually you need PATH to define the search path for the commands.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40600104
You can create a new user and copy the .bash_profile, etc. from that user home dir to your home dir and then modify.
0
 
LVL 29

Accepted Solution

by:
serialband earned 500 total points
ID: 40600136
He's asking about OS X, not linux.  There is no /etc/skell/.  It's starts quite empty with no dot files and loads /etc/bashrc or /etc/profile (which loads /etc/bashrc).  Unless a user creates a ~/.bashrc or ~/.bash_profile, they don't exist by default.  It's safe to remove the file for OS X Yosemite.
0
 

Author Closing Comment

by:freejointventure
ID: 40600811
correct, thank you.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes in detail how to set up the iPad in the Enterprise using iPCU aka iPhone Configuration Utility.  This could also be used for the iPhone although I have not detailed out any differences. Preparation as an iPad Administrator:…
A professional opinion on which Apple product to buy, and a tidbit about the WWDC.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question