Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[TIP] Man a colori

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
55 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
Author
Message
Onip
Advocate
Advocate
User avatar
Posts: 2912
Joined: Thu Sep 02, 2004 10:34 am
Location: Parma (Italy)

  • Quote

Post by Onip » Sun Jan 30, 2005 7:48 pm

io ho aggiunto l'alias a /etc/profile e funge
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Top
Sparker
l33t
l33t
User avatar
Posts: 992
Joined: Thu Aug 28, 2003 2:49 pm

  • Quote

Post by Sparker » Mon Jan 31, 2005 2:30 pm

nelle shell di login bash legge .bash_profile
Io consiglio
ln -s .bashrc .bash_profile
Top
lavish
Bodhisattva
Bodhisattva
Posts: 4296
Joined: Mon Sep 13, 2004 10:33 am
Contact:
Contact lavish
Website

  • Quote

Post by lavish » Mon Jan 31, 2005 2:35 pm

Sparker wrote:nelle shell di login bash legge .bash_profile
Io consiglio
ln -s .bashrc .bash_profile
oppure metti un

Code: Select all

[[ -f ~/.bashrc ]] && . ~/.bashrc
che dovrebbe gia' essere creato di default in ~/.bash_profile .... o no?
minimalblue.com | secgroup.github.io/
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Mon Jan 31, 2005 3:15 pm

lavish wrote: che dovrebbe gia' essere creato di default in ~/.bash_profile .... o no?
Si.
Registered as User #281564 and Machines #163761
Top
exebeje
n00b
n00b
Posts: 38
Joined: Wed Aug 18, 2004 8:11 pm

  • Quote

Post by exebeje » Mon Jan 31, 2005 8:30 pm

ehm...NO! :oops:
Non per contraddire, ma io .bash_profile me lo sono dovuto creare a manina con un bel touch, perchè non c'era, come non c'era .bashrc (o era vuoto non ricordo). In ogni caso è _quello_ che viene letto al login!
Insomma volevo chiedere: chi è che dovrebbe creare .bash_profile?
"just because you're paranoid it don't mean they're not after you"
Top
Sparker
l33t
l33t
User avatar
Posts: 992
Joined: Thu Aug 28, 2003 2:49 pm

  • Quote

Post by Sparker » Mon Jan 31, 2005 8:34 pm

I file .bashrc e .bash_profile vengono creati se si aggiunge il parametro -m a useradd
Top
silian87
Advocate
Advocate
User avatar
Posts: 2318
Joined: Mon Oct 06, 2003 7:12 pm
Location: Treviso, Italy
Contact:
Contact silian87
Website

  • Quote

Post by silian87 » Mon Jan 31, 2005 9:02 pm

Decisamente fico oserei dire :D
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87 ... 87-faq.txt

GTalk: silian87@gmail.com
Top
oRDeX
Veteran
Veteran
User avatar
Posts: 1325
Joined: Sun Oct 19, 2003 12:08 pm
Location: Italy
Contact:
Contact oRDeX
Website

  • Quote

Post by oRDeX » Mon Jan 31, 2005 9:18 pm

Io ho piazzato l'alias alla fine del /etc/profile e tutto va a meraviglia..spacca!!
Top
cloc3
Advocate
Advocate
User avatar
Posts: 4840
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

  • Quote

Post by cloc3 » Mon Jan 31, 2005 9:49 pm

Deluso.

Cioè, non per il tip. E' fenomenale. Per la semplicità, soprattutto.

Ma il man a colori mi sembra più difficile da leggere.
vu vu vu
gentù
mi piaci tu
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Mon Jan 31, 2005 9:59 pm

exebeje wrote:ehm...NO! :oops:
Non per contraddire, ma io .bash_profile me lo sono dovuto creare a manina con un bel touch, perchè non c'era, come non c'era .bashrc (o era vuoto non ricordo).
Tutto dipende se alla creazione della home directory dell'utente viene richiesto di utilizzare lo skeleton che si trova in /etc/skel.

Hai ragione sul fatto che per root tale file non esiste e deve essere creato a mano.
Registered as User #281564 and Machines #163761
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Tue Feb 01, 2005 1:40 am

cloc3 wrote:Deluso.

Cioè, non per il tip. E' fenomenale. Per la semplicità, soprattutto.

Ma il man a colori mi sembra più difficile da leggere.
tu dici?
e' sicuramente piu facile identificarne i paragrafi e le sezioni pero'. imho.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
paperp
Guru
Guru
User avatar
Posts: 544
Joined: Fri Feb 27, 2004 8:14 pm
Location: Toscana , Italy
Contact:
Contact paperp
Website

  • Quote

Post by paperp » Tue Feb 01, 2005 10:23 pm

Bellissimo..userò di più il man!! :D
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

  • Quote

Post by Cazzantonio » Wed Feb 02, 2005 10:43 am

FIGO!! :D
E' già nei post utilissimi? :wink:
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Wed Feb 02, 2005 10:47 am

Aggiunto alla sezione Tips dei "Post utilissimi"
Registered as User #281564 and Machines #163761
Top
Dhaki
Guru
Guru
User avatar
Posts: 325
Joined: Wed Jun 16, 2004 3:23 pm
Location: Ticino - CH

  • Quote

Post by Dhaki » Wed Feb 02, 2005 1:50 pm

gutter wrote:Aggiunto alla sezione Tips dei "Post utilissimi"
Onorato :D . Grazie a tutti per i commenti.
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Wed Feb 02, 2005 2:20 pm

Dhaki wrote: Onorato :D . Grazie a tutti per i commenti.
Dovevo farlo prima, ma me lo sono scordato :wink:
Registered as User #281564 and Machines #163761
Top
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

  • Quote

Post by fctk » Sun Jun 11, 2006 10:31 am

riesumo il thread perchè ho notato un problema con most.

sostanzialmente se configuro man in modo da fargli supportare l'UTF-8 (http://www.gentoo.org/doc/en/utf-8.xml), most non funziona correttamente.

esempio (tratto dalla man page del comando cp):

$ man cp:

Code: Select all

cp copia file (o, eventualmente, directory). È possibile copiare sia  un  file  su  una  desti‐
       nazione  data,  sia  un numero arbitrario di file su una directory d’arrivo.  Se l’ultimo argo‐
       mento indica una directory esistente, cp copia ogni file sorgente su quella  directory  (mante‐
       nendo lo stesso nome).  Altrimenti, se sono indicati solo due file, copia il primo sul secondo.
       Si ha un errore se l’ultimo argomento non è una directory e sono presenti più di due  argomenti
       non di opzione.
$ man -P most cp

Code: Select all

cp copia file (o, eventualmente, directory).
       nazione  data,  sia  un numero arbitrario di file su una directory d
       mento indica una directory esistente, cp copia ogni file sorgente su quella  directory  (mante
       nendo lo stesso nome).  Altrimenti, se sono indicati solo due file, copia il primo sul secondo.
       Si ha un errore se l
       non di opzione.
Top
Scen
Retired Dev
Retired Dev
User avatar
Posts: 2470
Joined: Tue Jul 29, 2003 9:44 am
Location: Padova, Italy
Contact:
Contact Scen
Website

  • Quote

Post by Scen » Tue Jun 13, 2006 12:19 pm

Leggendo ftp://space.mit.edu/pub/davis/most/changes.txt :
Changes since 4.9.5
0. src/*.c: Various changes to support slang 2. Version bumped to
4.10.0. UTF-8 support not yet available.
1. src/keym.c: Ignore mouse events under DOS/Windows (Gisle Vanem,
giva at bgnett, no).
Che versione di most hai installato?
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Top
Scen
Retired Dev
Retired Dev
User avatar
Posts: 2470
Joined: Tue Jul 29, 2003 9:44 am
Location: Padova, Italy
Contact:
Contact Scen
Website

  • Quote

Post by Scen » Tue Jun 13, 2006 12:40 pm

Per l'impostazione della variabile d'ambiente MANPAGER in modo globale consiglio i metodi spiegati in http://www.gentoo.org/doc/it/handbook/h ... #doc_chap2, ovvero:

aggiungere al file /etc/env.d/99local (crearlo se non esistente)

Code: Select all

MANPAGER=/usr/bin/most
Per applicare da subito le modifiche

Code: Select all

env-update && source /etc/profile
[EDIT]
Corretto l'ultimo comando: s/etc-update/env-update/

Thanks to lucapost 8)
[/EDIT]
Last edited by Scen on Wed Aug 01, 2007 5:30 pm, edited 1 time in total.
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Top
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

  • Quote

Post by fctk » Tue Jun 13, 2006 8:07 pm

Scen wrote:Che versione di most hai installato?
4.9.5... quando ho un po' di tempo provo ad aggiornarlo e a leggere i changelogs...
Top
Scen
Retired Dev
Retired Dev
User avatar
Posts: 2470
Joined: Tue Jul 29, 2003 9:44 am
Location: Padova, Italy
Contact:
Contact Scen
Website

  • Quote

Post by Scen » Wed Aug 01, 2007 3:53 pm

Tolgo un pò di ragnatele a questo post, e aggiungo un'alternativa (IMHO migliore della altre) per visualizzare al meglio le pagine man.

Per chi usasse app-editors/vim, consiglio di abilitare la USE locale "vim-pager" per questo pacchetto.

Vi ritroverete un bel /usr/bin/vimmanpager a disposizione: basterà impostare la variabile d'ambiente MANPAGER (localmente, globalmente, o come meglio riteniate opportuno) a tale eseguibile ed il gioco è fatto! 8)
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Top
Onip
Advocate
Advocate
User avatar
Posts: 2912
Joined: Thu Sep 02, 2004 10:34 am
Location: Parma (Italy)

  • Quote

Post by Onip » Wed Aug 01, 2007 4:53 pm

bello, mi piace vimmanpager... grazie Scen
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Top
lucapost
Veteran
Veteran
User avatar
Posts: 1420
Joined: Thu Nov 24, 2005 4:33 pm
Location: <ud|me|ts> - Italy
Contact:
Contact lucapost
Website

  • Quote

Post by lucapost » Wed Aug 01, 2007 5:21 pm

Bello il man a colori!!!

ps:
Scen wrote: Per applicare da subito le modifiche

Code: Select all

etc-update && source /etc/profile
qua è meglio così:

Code: Select all

env-update && source /etc/profile
LP
Top
Scen
Retired Dev
Retired Dev
User avatar
Posts: 2470
Joined: Tue Jul 29, 2003 9:44 am
Location: Padova, Italy
Contact:
Contact Scen
Website

  • Quote

Post by Scen » Wed Aug 01, 2007 5:27 pm

lucapost wrote:
Scen wrote: Per applicare da subito le modifiche

Code: Select all

etc-update && source /etc/profile
qua è meglio così:

Code: Select all

env-update && source /etc/profile
Oooppss.... :oops: Ho sbagliato a scrivere! :P Grazie per la correzione :wink:
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Top
riverdragon
Veteran
Veteran
User avatar
Posts: 1269
Joined: Thu Sep 14, 2006 9:16 am
Location: Verona

  • Quote

Post by riverdragon » Wed Aug 01, 2007 7:03 pm

Most qui non funziona, o meglio, questo è il risultato

Code: Select all

^[[1mNOME^[[0m
       cp - copia file e directory

^[[1mSINTASSI^[[0m
       ^[[1mcp [^[[4m^[[22moptions^[[24m^[[1m] ^[[4m^[[22mpercorso^[[24m ^[[4mfile^[[0m
       ^[[1mcp [^[[4m^[[22moptions^[[24m^[[1m] ^[[4m^[[22mfile...^[[24m ^[[4mdirectory^[[0m

       Opzioni POSIX: ^[[1m[-fiprR] [--]^[[0m

       Opzioni aggiuntive POSIX 1003.1-2003: ^[[1m[-HLP]^[[0m
Che dipenda dal fatto che invece di usare sys-apps/man uso sys-apps/man-db (per i caratteri accentati)?
EDIT: leggendo il post di Scen, direi che il problema è che uso la codifica unicode (come fate a stare senza???).

Questo invece è il risultato di vim-pager:

Code: Select all

1mNOME0m
       cp - copia file e directory

1mSINTASSI0m
       1mcp [4m22moptions24m1m] 4m22mpercorso24m 4mfile0m
       1mcp [4m22moptions24m1m] 4m22mfile...24m 4mdirectory0m

       Opzioni POSIX: 1m[-fiprR] [--]0m

       Opzioni aggiuntive POSIX 1003.1-2003: 1m[-HLP]0m
Risultato: :cry:
Top
Post Reply
  • Print view

55 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic