
Tuve que marcar el camino .bashrc
. Lo abrí usando vi .bashrc
y por error omití la última línea (que contenía algo con fi
) y luego agregué la ruta. Lo guardé usando :wq
. Mientras source .bashrc
lo hace se muestra:
bash: .bashrc: line 148: syntax error: unexpected end of file.
Estas son las últimas líneas 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
Respuesta1
Deberías .bashrc
lucir algo como esto
# 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
Eliminaste la última vez fi
que estaba cerrando la condición de bloqueo if.