/home/my-pc/.bashrc:16: command not found: shopt
/home/my-pc/.bashrc:24: command not found: shopt
/home/my-pc/.bashrc:111: command not found: shopt
/usr/share/bash-completion/bash_completion:51: command not found: shopt
/usr/share/bash-completion/bash_completion:57: command not found: complete
/usr/share/bash-completion/bash_completion:62: command not found: complete
/usr/share/bash-completion/bash_completion:65: command not found: complete
/usr/share/bash-completion/bash_completion:68: command not found: complete
/usr/share/bash-completion/bash_completion:71: command not found: complete
/usr/share/bash-completion/bash_completion:74: command not found: complete
/usr/share/bash-completion/bash_completion:77: command not found: complete
/usr/share/bash-completion/bash_completion:80: command not found: complete
/usr/share/bash-completion/bash_completion:83: command not found: complete
/usr/share/bash-completion/bash_completion:86: command not found: complete
/usr/share/bash-completion/bash_completion:89: command not found: complete
/usr/share/bash-completion/bash_completion:92: command not found: complete
/usr/share/bash-completion/bash_completion:314: parse error near `\n'
\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$
esta é a saída
Responder1
Isso acontece devido ao shell padrão do linux que está configurado como zsh e para mudar isso podemos usar o seguinte comando:
chsh -s /bin/bash
e então origine seu arquivo bash para exportar os caminhos presentes nele:
source ~/.bashrc
Responder2
Se o seu shell for zsh, faça suas edições em ~/.zshrc
vez de .bashrc.
Quando terminar, salve o arquivo usando :wq
(supondo que você esteja usando o vim) e execute este comando:
source ~/.zshrc
Lembre-se de remover todas as alterações feitas em .bashrc, para que ele não seja executado duas vezes.