Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: How to run my lovely eclipse everywhere!

  • Subject: Re: How to run my lovely eclipse everywhere!
  • From: Hadron Quark <qadronhuark@xxxxxxxxxxx>
  • Date: Tue, 12 Sep 2006 18:28:45 +0200
  • Cancel-lock: sha1:rkny+btDYIBWlGl77/eBp85jpIU=
  • Newsgroups: comp.os.linux.advocacy
  • Organization: CERN LHC - http://public.web.cern.ch/public/
  • References: <1158049668.583515.137490@i3g2000cwc.googlegroups.com> <1884196.vh0flMRuW9@schestowitz.com>
  • User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)
  • Xref: news.mcc.ac.uk comp.os.linux.advocacy:1153565
Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx> writes:

> __/ [ Flamingo ] on Tuesday 12 September 2006 09:27 \__
>
>> Hi Gurus,
>> 
>> I'm not so good at linux.  Now a problem puzzles me,  my lovely eclipse
>> installed at my home directory(installed by somebody else),  everytime
>> I have to do something like this:
>> 
>> $    cd /home/wx/eclipse
>> $    ./eclipse
>> 
>> then I can start eclipse.
>> 
>> How I can directly use "eclipse" at any directory, not limited in
>> /home/wx/eclipse.  Is it about how to set global envirment?
>> 
>> thanks for kind reply. any help is appreciated!
>
> alias eclipse='/home/wx/eclipse/eclipse'
>
> Add this to your startup scripts, e.g. .bashrc. This depends on the shell and
> the distribution. In my case:
>
> ,----[ ~/.bashrc ]
> | test -s /home/roy/Main/Programs/Scripts/Definitions/bashrc
> | && . /home/roy/Main/Programs/Scripts/Definitions/bashrc
> | [[ -f "/home/roy/.config/autopackage/paths-bash" ]] && .
> |  "/home/roy/.config/autopackage/paths-bash"
> `----
>
> /home/roy/Main/Programs/Scripts/Definitions/bashrc contains:
>
> ,----[ Contents ]
> | echo Setting up aliases...
> | echo
> | 
> | . /home/roy/Main/Programs/Scripts/aliases.sh
> `----
>
> home/roy/Main/Programs/Scripts/aliases contains
>
>
> ,----[ Contents ]
> | #!/bin/bash
> | 
> | alias dir='ls -la --color=always'
> | alias dir/p='ls -la --color=always |more'
> | alias dir/w='ls --color=always -X'
> | ...
> `----
>
> It can be made simpler by just including the last bits in .bashrc, but then
> it's more prone to breakage.
>
> Hope it helps,

Way to go and complicate it.

alias is for amateurs and peoplpe who want bash to look like DOS or VMS
or somesuch :)

alias is not a good idea here because there is a good chance there will
be other tools required in the same directoy. Just IMO, of course.

>
> Roy

-- 
All international orders must be accompanied by payment in U. S. funds.

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index