[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] [OT?] auto load ~/.bashrc
From: |
Leslie Watter |
Subject: |
Re: [shell-script] [OT?] auto load ~/.bashrc |
Date: |
Fri, 31 Aug 2012 09:54:17 -0300 |
Oi Peterson,
dá uma olhada no conteúdo do meu .bash_profile e vc vai entender quem
carrega ele (pelo menos aqui -- Debian/Ubuntu)
------
$ cat .bash_profile
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/login.defs
#umask 022
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# the rest of this file is commented out.
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:~/bin/bin:"${PATH}"
fi
# do the same with MANPATH
#if [ -d ~/man ]; then
# MANPATH=~/man${MANPATH:-:}
# export MANPATH
#fi
----
Sim, é o .bash_profile quem carrega o .bashrc ;-)
Colei o arquivo completo para servir de referência pra ti.
[]s
LEslie
2012/8/31 Petterson Faria <address@hidden>
> **
>
>
> Bom dia.
>
> Percebi já fazia um tempo, mas não me preocupei antes em resolver um
> problema.
> Quando abro meu terminal ele não está carregando o ~/.bashrc
> Eu tenho que fazer o 'source ~/.bashrc' manualmente.
> Isso para cada novo terminal.
>
> Algum sabe ja passou por algo parecido?
>
> --
> Atenciosamente,
> *Petterson Faria*
>
> *"*Where there is a shell there is a way" (UNIX)
>
> [As partes desta mensagem que não continham texto foram removidas]
>
>
>
--
Leslie H. Watter
[As partes desta mensagem que não continham texto foram removidas]