Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my personnal computer, not a server, in my .bash_profile (I'm on OSX) — sym-linked to .bashrc, I have the following line among some others : alias deploy=sh ~/dir/ectory/

The file is chmoded 755, and I can finely execute it manually. But everytime I launch my terminal, I got this message :

-bash: alias: /Users/foo/dir/ectory/ not found

This path exists, the file too. I have other aliases which work.

Why is it throwing me this message?

share|improve this question
up vote 0 down vote accepted

You get that message because you didn't properly quote the space in your alias. Your alias should have the right side enclosed in quotes like this:

alias deploy='sh ~/dir/ectory/'
share|improve this answer

Your Answer


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.