project-center

🐚 Guia Completo — Instalação do Zsh no Linux

Este guia mostra como instalar o Zsh nas principais distribuições Linux e defini-lo como shell padrão.


📦 Instalação do Zsh por Distribuição

🟦 Arch Linux / Manjaro / EndeavourOS (pacman)

sudo pacman -S --needed zsh

🟩 Debian / Ubuntu / Linux Mint / Pop!_OS (apt)

sudo apt update
sudo apt install zsh -y

🟧 Fedora (dnf)

sudo dnf install zsh -y

🟥 CentOS / RHEL / Amazon Linux (yum)

sudo yum install zsh -y

🟪 openSUSE (zypper)

sudo zypper install zsh -y

🔧 Definir o Zsh como Shell Padrão

chsh -s $(which zsh)

⚠️ É necessário encerrar a sessão e entrar novamente para aplicar.


🧪 Testar o Zsh

Digite:

echo $SHELL

Se aparecer /bin/zsh ou /usr/bin/zsh, tudo certo!


🎉 Conclusão

Agora você tem:



💡 Guia Completo — Instalação do Oh My Zsh + Powerlevel10k + Plugins

Este guia instala:

Oh My Zsh ✅ Tema powerlevel10k ✅ Plugin zsh-autosuggestions ✅ Plugin zsh-syntax-highlighting


📥 Instalar o Oh My Zsh (Método Oficial)

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.


🎨 Instalar o Tema Powerlevel10k

Via Git (recomendado)

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git \
  ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

⚙️ Configurar o Tema no .zshrc

Edite:

nano ~/.zshrc

Altere a linha do tema:

ZSH_THEME="powerlevel10k/powerlevel10k"

Recarregue:

source ~/.zshrc

⚡ Instalar Plugins

🔵 zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions \
  ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

🟣 zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
  ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

🔧 Ativar os Plugins no .zshrc

Edite o arquivo:

nano ~/.zshrc

Altere a linha dos plugins para:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

Recarregue:

source ~/.zshrc

🧪 Testar os Plugins


🌈 Configurar o Powerlevel10k

Inicie o assistente:

p10k configure

Isso abrirá o menu gráfico para configurar o visual do seu terminal.


🎉 Conclusão

Agora você tem: