Re: .bashrc
Olha o que eu achei:
$ man bash
...
When bash is invoked as an interactive login shell, or as
a non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order, and reads and executes commands from the first one
that exists and is readable. The --noprofile option may
be used when the shell is started to inhibit this behav-
ior.
When a login shell exits, bash reads and executes commands
from the file ~/.bash_logout, if it exists.
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
...
Whoa! Está tudo na manpage! ;^)
Resumindo, o que vc quer deve ser o seguinte:
no /etc/profile (profile global), vc põe isso:
<ISSO>
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
</ISSO>
Aí vc copia o .bashrc que vc fez pro root para /etc/bashrc e pronto.
[]'s
Pablo
On Wed, 4 Jul 2001, HardBeat404 wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Galera , me digam uma coisa
> No arquivo .bashrc do root , qualquer modificacao que eu fizer logo q
> eu "logar" denovo ele vai ler as configurações e aplica-las , mas nos
> users normais , no console esse arquivo nao esta lendo , qdo eu ja
> caio na shell os aliases e as configuracoes nao estao aplicadas , so
> se eu digitar bash q serao aplicadas , e qdo estou no X e abro um
> terminal ele tb lê , eu gostaria de saber , como faco pra nos users
> normais logo que eu cair na shell ele use as configurações
>
>
> []s
>
> /*--------------------------------------------------------------------
> - ------
> hardbeat404@programmer.net
> irc.openprojects.net | Canal #Debian-br
> http://debian-br.sourceforge.net
> Coders Forum ! -> http://codersforum.tux.nu
> Debian News? http://www.debianplanet.org
> ICQ/Licq: #72974241
> Linux Registered User: #220025
> - ----------------------------------------------------------------------
> - ----*/
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBO0MsybvphCHEu7TmEQLT7wCfbR6bjud0wo51V1QGBICpMftJFREAoLu8
> iR2DkTProGdWZuflo48jzvpV
> =yukp
> -----END PGP SIGNATURE-----
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Pablo Borges maniak-b@linuxbr.com.br
-------------------------------------------------------------------
____
/ \ Debian:
\__/ | The 100% suck free linux distro.
/
/ Tecnologia UOL
Reply to:
- References:
- .bashrc
- From: "HardBeat404" <hb404@terra.com.br>