Skip to content

Instantly share code, notes, and snippets.

@jonilsonds9
Last active October 11, 2025 19:53
Show Gist options
  • Save jonilsonds9/4b017d54876b279c27ce77f116f5d3ca to your computer and use it in GitHub Desktop.
Save jonilsonds9/4b017d54876b279c27ce77f116f5d3ca to your computer and use it in GitHub Desktop.
ZSH + Oh My Zsh + powerlevel10k + Fonts no Ubuntu 22.04

ZSH + Oh My Zsh + powerlevel10k + Fonts no Ubuntu 22.04

1. Instalar ZSH:

sudo apt-get install zsh

2. Instalar via curl, instale o mesmo se não tiver:

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

3. Quando solicitado afirme que deseja que o ZSH seja o terminal default!

4. Instalando plugin de auto sugestão do ZSH (zsh-autosuggestions):

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

4.1 Adicione o plugin para a lista de plugins para o Oh My Zsh (no arquivo ~/.zshrc):

plugins=( 
    # other plugins...
    zsh-autosuggestions
)

4.2 E depois reinicie a máquina para tudo ser aplicado

5. Instalar plugin zsh-syntax-highlighting:

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

5.1 Adicione o plugin para a lista de plugins para o Oh My Zsh (no arquivo ~/.zshrc):

plugins=( 
    # other plugins...
    zsh-syntax-highlighting
)

6. Tema dracula no terminal, os passos e preencha as opções quando solicitadas:

git clone https://github.com/dracula/gnome-terminal
cd gnome-terminal
./install.sh

7. Instalar font firacode:

sudo apt install fonts-firacode

7.1 Selecione a firacode como font do terminal

8. Instale as MesloLGS fonts para os icons funcionarem corretamente no terminal antes de continuar:

  • Verique se você tem as seguintes fonts no sistema (~/.fonts):
--- Meslo LG M Regular Nerd Font Complete.ttf
--- MesloLGS NF Bold.ttf
--- MesloLGS NF Bold Italic.ttf
--- MesloLGS NF Italic.ttf
--- MesloLGS NF Regular.ttf

Se não tiver faça o download nesses link: https://github.com/romkatv/powerlevel10k-media/

Ou nesses links separados:

Prefira os links os separados!

Feche o terminal e abra de novo para recarregar as fonts corretamente!

9. Instalar powerlevel10k

Link: https://github.com/romkatv/powerlevel10k#installation

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

9.1 Altere para o Adicione powerlevel10k no arquivo ~/.zshrc:

ZSH_THEME="powerlevel10k/powerlevel10k"

E depois saia, feche o terminal e abra de novo (deve aparecer as perguntas abaixo, caso constrário) execute o comando no terminal

p10k configure

9.2 Perguntas de verificação dos icones:

9.2.1. Verificar se o icone é realmente um diamante, se for marque como Sim (y - Yes)

9.2.2. Verificar se o icone é realmente um cadeado, se for marque como Sim (y - Yes)

9.2.3. Verificar se o icone é realmente o icone do Debian, se for marque como Sim (y - Yes)

9.2.4. Verificar se uma lista de icones separadas por X se sobrepoem sobre os X ou não, se for marque como Sim (y - Yes)

9.3 Estilo do terminal:

9.3.1 Prompt Style: Selecione a primeira opção - src (azul bold) e master normal verde

9.3.2 Character Set: Selecione Unicode

9.3.3 Prompt Colors: Selecione 256 cores

9.3.4 Show current time? Selecione a opção 2 (24-Hour format)

9.3.5 Prompt Height: Selecione a opção 2 (Two lines)

9.3.6 Prompt Connection: Selecione a opção 3 (Solid).

9.3.7 Prompt Frame: Selecione a opção 1 (No frame)

9.3.8 Connection Color: Selecione a opção 3 (Darkest)

9.3.9 Prompt Spacing: Selecione a opção 2 (Sparse)

9.3.10 Icons: Selecione a opção 2 (Many icons)

9.3.11 Prompt Flow: Selecione a opção 1 (Concise)

9.3.12 Enable Transient Prompt: Selecione a opção "No"

9.3.13 Instant Prompt Mode: 2 Quiet

9.3.14 Apply changes to ~/.zshrc: Selecione "y" (Yes - Sim)

10. Possivelmente os icons não devem aparecer no VS Code, ou estão estranhos, sem funcionar, faça o seguinte:

  • Abra as configurações e pesquise por "Terminal" > "Integrated: Font Family"
  • E coloque a font "MesloLGS NF" no campo.
@irvinglucas
Copy link

Opa, obrigado pelo "script" rs. Rodei tudo no Ubuntu 24.04 e está funcionando plenamente. Só não instalei o tema, de resto tá tudo redondo.

@jonilsonds9
Copy link
Author

@irvinglucas show de bola!

@TiuCassiO
Copy link

tudo certo , agradecido pelo TUTO . S2

@Mario-aj
Copy link

Show de bola mano!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment