Hi,

--- On Tue, Dec 29, 2009 at 9:44 PM, Varrun Ramani
<darthsit...@gmail.com> wrote:
| Yes, that works, but thats as bad as typing a cd command everytime.
\--

Everytime? These are new requirements :) You had only asked as to how
to cd to a directory from a script.

---
| I want
| to run a short command like "pc" (for project change :) ) by copying it to
| /sbin
\--

This should have been your actual question. It always helps to know
what you are trying to accomplish. Anyways, you could export the PC
command in your ~/.bashrc:

  export PC='cd /path/to/project/directory'

Source your ~/.bashrc once:

  $ source ~/.bashrc

and then use:

  $ $PC

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to