Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Time to move on?
Date: Tue, 24 Mar 2009 02:34:08
Message-Id: 1237862045.4298.8.camel@blackwidow.nbk
In Reply to: Re: [gentoo-user] Time to move on? by Dale
1 On Mon, 2009-03-23 at 18:58 -0500, Dale wrote:
2 > Albert Hopkins wrote:
3 > > On Sun, 2009-03-22 at 22:18 -0500, Dale wrote:
4 > >
5 > >> Neil Bothwick wrote:
6 > >>
7 > >>> On Sun, 22 Mar 2009 19:26:40 -0500, Dale wrote:
8 > >>>
9 > >>>
10 > >>>
11 > >>>>>> emerge -pvDu --reinstall changed-use @world
12 > >>>>>>
13 > >>>>>> ??? Certainly a lot more typing. ;-)
14 > >>>>>>
15 > >>>>>>
16 > >>>
17 > >>>
18 > >>>>> Use an alias and it's less typing.
19 > >>>>>
20 > >>>>>
21 > >>>
22 > >>>
23 > >>>> Or add it to make.conf. I think that would work too.
24 > >>>>
25 > >>>>
26 > >>> It would work, every time you called emerge, whether you wanted that
27 > >>> option or not.I prefer to have aliases for commands with options that I
28 > >>> call often, but not every time.
29 > >>>
30 > >>>
31 > >>>
32 > >>>
33 > >> I'm not real familiar with aliases but know what it is. If you use the
34 > >> alias method, how would you disable it for a one time run?
35 > >>
36 > >
37 > > Uh.. you don't "disable" it. You simply don't use the alias.
38 > >
39 > >
40 > >
41 >
42 > Oh, OK. <Dale waves hand over head.> If it is set up to add that
43 > option, how do you tell it not to use it?
44
45 Unless I'm misunderstanding something...
46
47 It's not an "option". It's an alias. If you have
48
49 $ alias myalias="emerge --foo --bar --baz"
50
51 Then to use the alias you simply type
52
53 $ myalias
54
55 If you don't want to use the alias, well, don't type it. I.e.
56
57 $ emerge --la --di --dah
58
59 or
60
61 $ someotheralias
62
63 Or perhaps you don't aren't understanding what shell aliases are?
64
65 http://en.wikipedia.org/wiki/Alias_(command)

Replies

Subject Author
Re: [gentoo-user] Time to move on? James Skinner <james.skinner@×××××.com>
Re: [gentoo-user] Time to move on? Stroller <stroller@××××××××××××××××××.uk>