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

I have a server called someserver and a website called

Basically I always type $./ in cygwin when doing updates to servers.

Is there a way to make an alias so that I can type someserver.MY and it will fill in the mylongwebsiteaddress for me at the end of the line and then let me press enter to run the command?

Very noob here, so let me know if that's not clear enough.

share|improve this question
up vote 2 down vote accepted

you can add a function to your bashrc

    $@ http://www......

then if you run

webdo <command> <args>

will run

command args http://www......
share|improve this answer

If you put the hostname in $HOSTFILE (/etc/hosts by default), you can use Meta@ to do a completion on the name.

share|improve this answer

You could do

 export someserver.$MY

(note the use of $MY instead of just MY).

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.