>   export PC='cd /path/to/project/directory'
>
> Source your ~/.bashrc once:
>
>  $ source ~/.bashrc
>
> and then use:
>
>  $ $PC
>
>
this should work. however there is a better option  than exporting command
line as a environment variable => specify an  alias in bashrc


http://linux.about.com/library/glossary/bldef_alias.htm
http://www.linux.org/lessons/beginner/l6/lesson6a.html

Varrun, this  is exactly what you should be doing. There is no need to
write a bash script to alias a command.


thanks
gourav
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to