Last Updated: February 25, 2016
·
1.074K
· omnicolor

Be lazier navigating to common directories

I frequently have certain directories that I need to get to. Instead of typing out a full path (cd /var/www/my-site/app) I've created a bash alias:

alias cds='clear ; cd /var/www/my-site/app'

Then to get where I need to go, I can just type cds and hit return.

1 Response
Add your response

You might also want to take a look at z

After you cd into a couple of directories, you'll just have to do:

$> z folderName <enter>
over 1 year ago ·