Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Man a colori
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Sun Jan 30, 2005 7:48 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Sparker
l33t
l33t


Joined: 28 Aug 2003
Posts: 992

PostPosted: Mon Jan 31, 2005 2:30 pm    Post subject: Reply with quote

nelle shell di login bash legge .bash_profile
Io consiglio
ln -s .bashrc .bash_profile
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Mon Jan 31, 2005 2:35 pm    Post subject: Reply with quote

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


oppure metti un
Code:

[[ -f ~/.bashrc ]] && . ~/.bashrc

che dovrebbe gia' essere creato di default in ~/.bash_profile .... o no?
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Jan 31, 2005 3:15 pm    Post subject: Reply with quote

lavish wrote:

che dovrebbe gia' essere creato di default in ~/.bash_profile .... o no?


Si.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
exebeje
n00b
n00b


Joined: 18 Aug 2004
Posts: 38

PostPosted: Mon Jan 31, 2005 8:30 pm    Post subject: Reply with quote

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"
Back to top
View user's profile Send private message
Sparker
l33t
l33t


Joined: 28 Aug 2003
Posts: 992

PostPosted: Mon Jan 31, 2005 8:34 pm    Post subject: Reply with quote

I file .bashrc e .bash_profile vengono creati se si aggiunge il parametro -m a useradd
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Mon Jan 31, 2005 9:02 pm    Post subject: Reply with quote

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

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

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Mon Jan 31, 2005 9:18 pm    Post subject: Reply with quote

Io ho piazzato l'alias alla fine del /etc/profile e tutto va a meraviglia..spacca!!
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4788
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Mon Jan 31, 2005 9:49 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Jan 31, 2005 9:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Tue Feb 01, 2005 1:40 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
paperp
Guru
Guru


Joined: 27 Feb 2004
Posts: 544
Location: Toscana , Italy

PostPosted: Tue Feb 01, 2005 10:23 pm    Post subject: Reply with quote

Bellissimo..userò di più il man!! :D
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Wed Feb 02, 2005 10:43 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Feb 02, 2005 10:47 am    Post subject: Reply with quote

Aggiunto alla sezione Tips dei "Post utilissimi"
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Dhaki
Guru
Guru


Joined: 16 Jun 2004
Posts: 325
Location: Ticino - CH

PostPosted: Wed Feb 02, 2005 1:50 pm    Post subject: Reply with quote

gutter wrote:
Aggiunto alla sezione Tips dei "Post utilissimi"

Onorato :D . Grazie a tutti per i commenti.
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Feb 02, 2005 2:20 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Sun Jun 11, 2006 10:31 am    Post subject: Reply with quote

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:
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:
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.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Jun 13, 2006 12:19 pm    Post subject: Reply with quote

Leggendo ftp://space.mit.edu/pub/davis/most/changes.txt :
Quote:

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
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Jun 13, 2006 12:40 pm    Post subject: Reply with quote

Per l'impostazione della variabile d'ambiente MANPAGER in modo globale consiglio i metodi spiegati in http://www.gentoo.org/doc/it/handbook/handbook-x86.xml?part=2&chap=5#doc_chap2, ovvero:

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

MANPAGER=/usr/bin/most


Per applicare da subito le modifiche
Code:

env-update && source /etc/profile


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

Thanks to lucapost 8)
[/EDIT]
_________________
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


Last edited by Scen on Wed Aug 01, 2007 5:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Jun 13, 2006 8:07 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed Aug 01, 2007 3:53 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Wed Aug 01, 2007 4:53 pm    Post subject: Reply with quote

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

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Wed Aug 01, 2007 5:21 pm    Post subject: Reply with quote

Bello il man a colori!!!

ps:
Scen wrote:

Per applicare da subito le modifiche
Code:

etc-update && source /etc/profile

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

_________________
LP
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed Aug 01, 2007 5:27 pm    Post subject: Reply with quote

lucapost wrote:
Scen wrote:

Per applicare da subito le modifiche
Code:

etc-update && source /etc/profile

qua è meglio così:
Code:
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
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Wed Aug 01, 2007 7:03 pm    Post subject: Reply with quote

Most qui non funziona, o meglio, questo è il risultato
Code:
^[[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:
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:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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