AndroidDev
AndroidDev

Reputation: 16385

Directory terminal shortcuts Mac OS X

I use GIT from the command line and have to cd many times before getting to my desired directory. Is there a way to make a shortcut to a directory on a MAC OS X system ?

Upvotes: 0

Views: 204

Answers (1)

selbie
selbie

Reputation: 104514

alias gotomydir='cd ~/git/myproject/src/common/utils'

Creates a command line shortcut called "gotomydir" that does exactly what you want. Add it to your .profile or .bashrc as appropriate.

Upvotes: 1

Related Questions