[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Variavel de Ambiente - Profile



Talvez o melho local seria o ~/.bash_profile e não
~/.bashrc como reportei anteriormente, algo como:

faça o seu ~/.bash_profile interpretar o /etc/profile,
algo
como:
# include profile if it exists
if [ -f ~/etc/profile]; then
    . /etc/profile

--- Yupanqui Munoz <yupanqui@gmail.com> escreveu:

> Ola Pessoal!!!
> 
> Aguem sabe pq não aceita as variaveis de ambiente???
> Por favor, quem puder veja o meu profile logo
> abaixo...
> ---
> # /etc/profile: system-wide .profile file for the
> Bourne shell (sh(1))
> # and Bourne compatible shells (bash(1), ksh(1),
> ash(1), ...).
> 
> ECLIPSE="/opt/eclipse/"
> JAVA_HOME="/usr/local/java"
> CLASSPATH="$JAVA_HOME/lib:$JAVA_HOME/jre/lib"
> 
> 
>
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$ECLIPSE:$JAVA_HOME:$JAVA_HOME/bin:$JAVA_HOME/jre/bin"
> 
> if [ "`id -u`" -eq 0 ]; then
>  PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
> fi
> 
> if [ "$PS1" ]; then
>  if [ "$BASH" ]; then
>    PS1='\u@\h:\w\$ '
>  else
>    if [ "`id -u`" -eq 0 ]; then
>      PS1='# '
>    else
>      PS1='$ '
>    fi
>  fi
> fi
> 
> export JAVA_HOME ECLIPSE CLASSPATH PATH
> 
> umask 022
> 
> . ~/.bashrc
> 
> 
> abraço
> 
> Yupanqui
> 
> 


Rauklei P.S. Guimarães
--------------------------------
Seja Livre. Use Debian/GNU/Linux

__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger 
http://br.download.yahoo.com/messenger/ 



Reply to: