Created
March 19, 2014 09:49
-
-
Save peterlozano/9638624 to your computer and use it in GitHub Desktop.
Auto aliases to go to project directories. Place in .bashrc or .profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in /var/www/*; do | |
if [ -d "$i/dev/www/sites/default" ]; then | |
alias `basename $i`="cd $i/dev/www/sites/default" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment