Dear Anonymous,

You just need to put an alias into your ~/.bashrc or ~/.cshrc file.

.bashrc
alias coot='/home/me/Documents/ccp4/Coot-0.5.2/bin/coot'

.cshrc
alias coot '/home/me/Documents/ccp4/Coot-0.5.2/bin/coot'

or, if you have root access /etc/bashrc or /etc/csh.cshrc
However, most sysadmins would not agree with editing these files and
would recommend adding a shell specific file into the /etc/profile.d/
directory

/etc/profile.d/coot.csh
alias coot '/home/me/Documents/ccp4/Coot-0.5.2/bin/coot'

/etc/profile.d/coot.sh
alias coot='/home/me/Documents/ccp4/Coot-0.5.2/bin/coot'


Welcome to Linux sysadmin.  It is a lifelong learning process.

Greatest sympathies,
Mark

On Wed, 2009-12-16 at 12:07 -0600, SUBSCRIBE CCP4BB Anonymous wrote:

> Hi,
> 
>   I can run Coot by typing:
> 
> sh /home/me/Documents/ccp4/Coot-0.5.2/bin/coot
> 
> I'd like to be able to just type Coot and have it run.  Normally I'd just
> add it to bashrc but I don't believe Coot is set up for this - it needs to
> be a .sh file for this to work I think.  How do I go about adding it to 
> bashrc?
> 
> Thanks!

Yours sincerely,

Mark A. White, Ph.D.
Assistant Professor, Dept. Biochemistry and Molecular Biology, 
Manager, Sealy Center for Structural Biology and Molecular Biophysics
X-ray Crystallography Laboratory,
Basic Science Building, Room 6.660 C
University of Texas Medical Branch
Galveston, TX 77555-0647
Tel. (409) 747-4747
Cell. (409) 539-9138
Fax. (409) 747-4745
mailto://wh...@xray.utmb.edu
http://xray.utmb.edu
http://xray.utmb.edu/~white

Reply via email to