
Eu tive que definir o caminho em .bashrc
. Abri-o usando vi .bashrc
e por engano omiti a última linha (contendo algo com fi
) e adicionei o caminho. Eu salvei usando :wq
. Ao fazer source .bashrc
isso está mostrando:
bash: .bashrc: line 148: syntax error: unexpected end of file.
Estas são as últimas linhas de ~/.bashrc
:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
PATH=$PATH:/home/rbh/PROGRAMS.330/bin
export PATH
Responder1
Você .bashrc
deve ser algo assim
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
PATH=$PATH:/home/rbh/PROGRAMS.330/bin export PATH
Você excluiu o último fi
que estava fechando a condição do bloco if