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

Re: Nã o cosigo fazer o bash autocompletar



todos os shells sao interativos... interativo é quando faz interaçao
com o usuario.

acontece que quanto tu faz login no modo texto (usuario - senha), o
bash lê o arquivo .bash_profile, e quando é um shell iniciado a partir
do konsole ou do gnome-terminal, é lido o arquivo de configuração
.bashrc.


para funcionar no modo texto, descomente as linhas do arquivo ~/.bash_profile

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi


para funcionar em modo texto para o root, descomente as mesmas linhas
do arquivo /root/.profile


é isso

Everton Foscarini

On Thu, 9 Dec 2004 10:39:41 -0200, Still <d.u.p@brflash.com.br> wrote:
> Sávio;
> * Musashi corta a msg que Savio Ramos enviou para Still:
> > 
> > O root está assim:
> >
> > # ~/.bashrc: executed by bash(1) for non-login shells.
> >
> > export PS1='\h:\w\$ '
> > umask 022
> >
> > # You may uncomment the following lines if you want `ls' to be colorized:
> >  export LS_OPTIONS='--color=auto'
> >  eval `dircolors`
> >  alias ls='ls $LS_OPTIONS'
> >  alias ll='ls $LS_OPTIONS -l'
> >  alias l='ls $LS_OPTIONS -lA'
> >
> >
> >
> > Obs: o recurso só não está dispnível nos terminal em modo texto, em modo gráfico
> > tudo bem...
> 
>         Segundo o que li aqui sobre o bash_completion, ele é usado
> somente para "shells" interativos, como o gnome-terminal, konsole, etc.
> e não para o "shell" em modo texto.
>         No meu sistema, funciona em ambos e em nenhum "script" de
> incialização o bash_completion está ativo:
> 
> /etc/bash.bashrc
> 
> # enable bash completion in interactive shells
> #if [ -f /etc/bash_completion ]; then
> #    . /etc/bash_completion
> #fi
> 
>         Tente desabilitar e testar novamente. Lembrando de que após vc
> fazer a modificação, vc precisa reiniciar o seu "logon".
> 
> 
> 
> []'s,
> 
> Still
> --
> Nelson Luiz Campos                  .''`.     | I hear; I forget.
> Engenheiro Eletricista             : :'  :    | I see; I remember.
> Linux User #89621 UIN 11464303     `. `'`     | I do; I understand.
> gnupgID: 55577339                    `-       | Chinese Proverb
> 
> 
> 


-- 
|
|
|  Éverton Didoné Foscarini
|  foscarini |a| gmail |.| com



Reply to: