1 |
On Tuesday 08 July 2008, Joe Peterson wrote: |
2 |
> Donnie Berkholz wrote: |
3 |
> > I meant moves were largely pointless, although categories are to a |
4 |
> > lesser extent. Tags would be a lot better, since nothing can be |
5 |
> > categorized perfectly into a single place. |
6 |
> |
7 |
> Yes, I can see the benefit of a tag paradigm. I, myself, find it |
8 |
> more trouble than benefit to have the extra directory level. I often |
9 |
> do "cd /usr/portage/*/foo" to get to the foo package, and it often |
10 |
> gets a hit in licenses or elsewhere that trips up this practice... |
11 |
|
12 |
You can avoid the issue with the license directory by appending a / at |
13 |
the end. Grobian showed me that a function is useful for this, I just |
14 |
do "ecd xorg-server" |
15 |
|
16 |
$ grep -A 3 ecd ~/.bashrc |
17 |
function ecd () { |
18 |
cd ~/devel/gentoo/gentoo-x86/*/$@/ |
19 |
} |
20 |
|
21 |
You could even change the /*/ to /*-*/ to exclude packages or profiles. |
22 |
|
23 |
Robert |