Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use parallels to run a windows machine and would love to make an alias in my .profile to make a shortcut to my project folder, but the following alias below dosn't seem to work.

alias trustpilot=/Volumes/C/Projects/stable
share|improve this question

3 Answers 3

up vote 0 down vote accepted

Aliases are for commands.
Like alias trustpilot = 'cd /Volumes/C/Projects/stable' lets you change to the directory by issuing the command trustpilot.
If you want to cd $trustpilot to your directory then you have to add it as a variable (without alias, just: trustpilot = '/Volumes/C/Projects/stable') to your shell profile.

share|improve this answer
    
Thanks for clarifying this :) –  lajlev Apr 22 '12 at 14:08

You could try making an alias to it:

alias trustpilot='cd /Volumes/C/Projects/stable'

share|improve this answer

Assuming you want the alias to change directory to the wanted directory:

alias trustpilot="cd /Volumes/C/Projects/stable"

Now writing

trustpilot

will "cd" you to that directory.


If you want a symbolic link (a file that points to the directory in question) you can do

ln -s /Volumes/C/Projects/stable ~/trustpilot

This gives you a directory in your home that points to /Volumes/C/Projects/stable, so you can do e.g. cd trustpilot from your home to go there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.