views:

1678

answers:

2

For some reason after I installed Boot Camp, my os x terminal started to point to the Boot Camp drive instead of my os x home directory by default! Once in the terminal I know how to switch back an forth and am able to do that, but I was wondering how to make my terminal default back to my os x home folder?

I've checked my Home Directory under System Preferences->Accounts->Control-click on my account and it is pointing to the right place. I've also tried unmounting it with no luck.

+2  A: 

You probably want these instructions for how to use the command line:

http://www.macosxhints.com/article.php?story=20071025175202466

Basically, use the dscl command line tool to see what the system thinks your home directory is set to, or to try and reset it....

Kendall Helmstetter Gelner
+4  A: 

This is a bit of under-the-hood fiddling, but you could simply enter

cd <directory>

in /Users/<yourUserName>/.profile

and startup a new terminal. You should then be in the directory you want.

Thorsten79
Doesn't it seem rather unlikley the .profile in his home directory will be read, if that is not where the terminal starts?It does however raise the question, is there something in his existing .profile that is changing directories when he opens Terminal? "cd ~" and see where you end up.
Kendall Helmstetter Gelner
Good idea. I think you're right about the .profile not being found. Didn't think about that.
Thorsten79
This answer helped me. I was trying to change the default directory of terminal. Thanks.
Kevin Dewalt
This answer also helped me. I too was trying to set the default directory of terminal.
John Gallagher