View previous topic :: View next topic |
Author |
Message |
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Sat Sep 15, 2007 1:36 am Post subject: |
|
|
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 |
|
|
96140 Retired Dev
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Sat Sep 15, 2007 2:19 am Post subject: |
|
|
--
Last edited by 96140 on Fri Sep 13, 2013 9:04 am; edited 1 time in total |
|
Back to top |
|
|
Kate Monster Apprentice
Joined: 13 Jun 2006 Posts: 226 Location: Clarkston, Michigan
|
Posted: Sat Sep 15, 2007 2:56 am Post subject: |
|
|
I use euse...just tell it what flags to turn on/off and it alphabetizes em for me |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sat Sep 15, 2007 5:54 am Post subject: |
|
|
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 |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sat Sep 15, 2007 2:56 pm Post subject: |
|
|
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 |
|
|
Monkeh Veteran
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Sat Sep 15, 2007 3:07 pm Post subject: |
|
|
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 I'm a vim user, can you tell? |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sat Sep 15, 2007 3:28 pm Post subject: |
|
|
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 |
|
|
arnvidr l33t
Joined: 19 Aug 2004 Posts: 629 Location: Oslo, Norway
|
Posted: Sat Sep 15, 2007 3:47 pm Post subject: |
|
|
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. _________________
|
|
Back to top |
|
|
Mantaar Apprentice
Joined: 17 May 2007 Posts: 219
|
Posted: Sat Sep 15, 2007 4:46 pm Post subject: |
|
|
Mine are also sorted!
Chronologically, by time of addition. _________________ Error compiling committee.c: too many arguments to function. |
|
Back to top |
|
|
Phenax l33t
Joined: 10 Mar 2006 Posts: 972
|
Posted: Sat Sep 15, 2007 6:27 pm Post subject: |
|
|
Mantaar wrote: | Mine are also sorted!
Chronologically, by time of addition. |
Me too |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
Mantaar Apprentice
Joined: 17 May 2007 Posts: 219
|
Posted: Sat Sep 15, 2007 11:03 pm Post subject: |
|
|
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 |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sun Sep 16, 2007 1:34 pm Post subject: |
|
|
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 |
|
|
Annagul Apprentice
Joined: 05 Dec 2004 Posts: 156 Location: San Fernando, Cádiz (Spain)
|
Posted: Fri Sep 21, 2007 10:59 am Post subject: |
|
|
My USEs
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 |
|
|
|