Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE flag organization.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sat Sep 15, 2007 1:36 am    Post subject: Reply with quote

nightmorph wrote:
Quote:
I have alias nano='nano -w' in /etc/bash/bashrc (and ufed seems to keep the variable nicely formatted in any case -- without slashes ;)

Lame. Rather than using a bash hack that you can't get around, just use /etc/nanorc -- that's what it's there for.


Sure you can get around it. Just type \nano.
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sat Sep 15, 2007 2:19 am    Post subject: Reply with quote

--

Last edited by 96140 on Fri Sep 13, 2013 9:04 am; edited 1 time in total
Back to top
View user's profile Send private message
Kate Monster
Apprentice
Apprentice


Joined: 13 Jun 2006
Posts: 226
Location: Clarkston, Michigan

PostPosted: Sat Sep 15, 2007 2:56 am    Post subject: Reply with quote

I use euse...just tell it what flags to turn on/off and it alphabetizes em for me :)
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Sep 15, 2007 5:54 am    Post subject: Reply with quote

Xaero wrote:
I use euse...just tell it what flags to turn on/off and it alphabetizes em for me :)

Oh man, I didn't even realise euse could do that! I only ever used it for euse -i flag to get info, and ufed to set them -- nice one :-)
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Sep 15, 2007 2:56 pm    Post subject: Reply with quote

Just a little off topic but why is it that after I
Code:
sort /var/lib/portage/world >tmp ; cat tmp>/var/lib/portage/world
When I go back after a day or two they are no longer sorted :?: < make that 2 or 3 months.
_________________
An A-Z Index of the Linux BASH command line


Last edited by hielvc on Sat Sep 15, 2007 3:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sat Sep 15, 2007 3:07 pm    Post subject: Reply with quote

nightmorph wrote:
Though there's definitely nothing like using nano and only nano to manage long lists of USE flags. ;)


Yes, nothing quite so horrifically annoying :P I'm a vim user, can you tell?
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Sep 15, 2007 3:28 pm    Post subject: Reply with quote

and here is how I do it.
Code:
source /etc/make.conf
echo $USE | sort >tmp
<FIRE UP NANO WHICH DOES HAVE CUSTOM NANORC  :^) >
nano tmp < tweak them buggers>
nano /etc/make.conf <cut n pastem back in >
now swear alot because I forgot to sudo the above step.

and some time latter I finish.
_________________
An A-Z Index of the Linux BASH command line


Last edited by hielvc on Sat Sep 15, 2007 4:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Sat Sep 15, 2007 3:47 pm    Post subject: Reply with quote

nightmorph wrote:
Though there's definitely nothing like using nano and only nano to manage long lists of USE flags. ;)
There's nothing quite like writing an operating system in nano. (Yes)

I really like nano for small editing jobs, writing little scripts. nanorc magic can make it quite good! I'm not gonna do anything big in it anymore though, easy to loose track.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Mantaar
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 219

PostPosted: Sat Sep 15, 2007 4:46 pm    Post subject: Reply with quote

Mine are also sorted!

Chronologically, by time of addition.
_________________
Error compiling committee.c: too many arguments to function.
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sat Sep 15, 2007 6:27 pm    Post subject: Reply with quote

Mantaar wrote:
Mine are also sorted!

Chronologically, by time of addition.


Me too
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Sep 15, 2007 6:42 pm    Post subject: Reply with quote

Mantaar wrote:
Mine are also sorted!

Chronologically, by time of addition.


Why that way ?
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
Mantaar
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 219

PostPosted: Sat Sep 15, 2007 11:03 pm    Post subject: Reply with quote

hielvc wrote:
Mantaar wrote:
Mine are also sorted!

Chronologically, by time of addition.


Why that way ?

To add a USE-flag, type:
Code:
sudo vi /etc/make.conf
/USE
f"a<your_useflag_here>[ESC]:wq

_________________
Error compiling committee.c: too many arguments to function.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Sep 16, 2007 1:34 pm    Post subject: Reply with quote

Mantaar wrote:
To add a USE-flag, type:
Code:
sudo vi /etc/make.conf
/USE
f"a<your_useflag_here>[ESC]:wq

nice one :-) I use ed sometimes but it'd be nice to know how to use vi in scripts as well.
Back to top
View user's profile Send private message
Annagul
Apprentice
Apprentice


Joined: 05 Dec 2004
Posts: 156
Location: San Fernando, Cádiz (Spain)

PostPosted: Fri Sep 21, 2007 10:59 am    Post subject: Reply with quote

My USEs :roll:

Code:

## USEs ##
# grep ${FLAG} /usr/portage/profiles/use.desc for explanation
# See also http://gentoo-portage.com

## HARDWARE
CPU="mmx sse sse2 threads"
PM="acpi -apm"
VIDEO="nvidia"
AUDIO="alsa -oss"
BLK_DEV="dvd cdr dvdr cdparanoia"
NET="howl -ipv6 -samba"
OTHER="cups foomaticdb gphoto2 gpm hal ppds usb xprint"
HARDWARE="${CPU} ${PM} ${VIDEO} ${AUDIO} ${BLK_DEV} ${NET} ${OTHER}"

## SOFTWARE
SYS_AUTH="-acl -berkdb crypt -kerberos -mysql pam ssl sasl"
X11="X gnome gtk kde qt3 -qt4"
MMX_OTHER="exif gstreamer imagemagick jpeg mime mng pdf png tiff wmf"
MMX_VID="avi asf divx4linux encode ffmpeg flash mpeg quicktime theora xine xvid win32codecs"
MMX_SND="aac flac mad ogg musepack musicbrainz -xmms"
WWW="-apache -apache2 ftp jabber libwww -mailwrapper firefox msn xml"
PROG="bash-completion -java perl -php python 7zip"
MISC="branding gnomedb gnutls spell bitmap-fonts truetype-fonts type1-fonts truetype unicode bzip2 dbus svg -ldap"
SOFTWARE="${SYS_AUTH} ${X11} ${MMX_SND} ${MMX_VID} ${MMX_OTHER} ${PROG} ${WWW} ${MISC}" ##

## USE ##
USE="${HARDWARE} ${SOFTWARE}"


I saw it in gentoo-wiki
_________________
Sapere aude
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum