Pagina 1 di 1

.bashrc

Inviato: ven 13 mag 2005, 17:38
da Vlainur
Ragazzi scusate volevo configurarmi qualche alias e la variabile lang,
<BR>ma noto con dispiacere che anche se ho creato il file ed ho inserito
<BR>tutto, ad ogni login riperdo tutti i dati.<br />
<BR>Come funziona sta cosa ?<br />
<BR><br />
<BR>Questo e´ quello che ho messo nel file .bashrc sotto la mia home<br />
<BR><br />
<BR># Environment variables<br />
<BR>export LANG=it_IT<br />
<BR># Aliases<br />
<BR>alias ls=´ls --color=auto -CF´<br />
<BR>alias pg=´ps aux | grep´<br />
<BR>alias gvim=´gvim -fn 6x10´<br />
<BR><br />
<BR>~                           
<BR><br />
<BR><br /><br>

.bashrc

Inviato: ven 13 mag 2005, 17:45
da gallows
prova ad inserirle in ~/.bash_profile<br />
<BR>e in .bashrc scrivi:<br />
<BR>test -r $HOME/.bash_profile . $HOME/.bash_profile<br />
<BR><br />
<BR>per la variabile lang, controlla /etc/profile.d/lang.sh ;)<br /><br>

.bashrc

Inviato: ven 13 mag 2005, 19:30
da Vlainur
ok funziona ! grazie<br />
<BR>ma quello che mi hai fatto scrivere in bashrc a che serve ?<br /><br>

.bashrc

Inviato: ven 13 mag 2005, 19:34
da gallows
piú o meno significa "se il file $HOME/.bash_profile esiste ed é leggibile inserisci qui il suo contenuto"<br />
<BR><br />
<BR><br>

.bashrc

Inviato: ven 13 mag 2005, 19:36
da gallows
<!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>test -r $HOME/.bash_profile . $HOME/.bash_profile</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End --><br />
<BR>mi auto-correggo, é:<br />
<BR> test -r $HOME/.bash_profile && . $HOME/.bash_profile<br />
<BR><br />
<BR>:P<br /><br>