How can I change the startup directory of my Terminal on OS X?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open
--
Chapters
00:00 How Can I Change The Startup Directory Of My Terminal On Os X?
00:12 Accepted Answer Score 24
00:29 Answer 2 Score 0
00:37 Answer 3 Score 13
00:53 Thank you
--
Full question
https://superuser.com/questions/193513/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #terminal #shell
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open
--
Chapters
00:00 How Can I Change The Startup Directory Of My Terminal On Os X?
00:12 Accepted Answer Score 24
00:29 Answer 2 Score 0
00:37 Answer 3 Score 13
00:53 Thank you
--
Full question
https://superuser.com/questions/193513/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #terminal #shell
#avk47
ACCEPTED ANSWER
Score 24
I'm not sure if theres a cleaner way, but adding cd path/to/directory
in your .bash_profile
in your home directory should automatically change your directory to what you specify.
ANSWER 2
Score 13
In Terminal.app's preferences, in the "Settings" tab, select the style of your terminal (probably Basic: the default), then go to the "Shell" pane and put cd /any/directory/you/want
in the run command box. This will automatically change directory when you open a new terminal.
ANSWER 3
Score 0
See this StackOverflow question.