Este guia mostra como instalar o Zsh nas principais distribuições Linux e defini-lo como shell padrão.
sudo pacman -S --needed zsh
sudo apt update
sudo apt install zsh -y
sudo dnf install zsh -y
sudo yum install zsh -y
sudo zypper install zsh -y
chsh -s $(which zsh)
⚠️ É necessário encerrar a sessão e entrar novamente para aplicar.
Digite:
echo $SHELL
Se aparecer /bin/zsh ou /usr/bin/zsh, tudo certo!
Agora você tem:
Este guia instala:
✅ Oh My Zsh ✅ Tema powerlevel10k ✅ Plugin zsh-autosuggestions ✅ Plugin zsh-syntax-highlighting
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Se você ainda não estiver usando zsh como shell padrão, o instalador pergunta se você deseja mudar.
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
.zshrcEdite:
nano ~/.zshrc
Altere a linha do tema:
ZSH_THEME="powerlevel10k/powerlevel10k"
Recarregue:
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
.zshrcEdite o arquivo:
nano ~/.zshrc
Altere a linha dos plugins para:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
Recarregue:
source ~/.zshrc
Inicie o assistente:
p10k configure
Isso abrirá o menu gráfico para configurar o visual do seu terminal.
Agora você tem: