Skip to content

Instantly share code, notes, and snippets.

@juniormartinxo
Last active January 3, 2023 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniormartinxo/4deaf36dd7e29391bf9fc2dc7a1f4fc4 to your computer and use it in GitHub Desktop.
Save juniormartinxo/4deaf36dd7e29391bf9fc2dc7a1f4fc4 to your computer and use it in GitHub Desktop.
ZSH no WSL.md

Instalar ZSH no WSL

Instalar o ZSH:

sudo apt install zsh

Instalar o Oh My Zsh

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

Instalar o zinit

bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"

Instalar o Spaceship

sudo git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"

Criar um link simbólico

sudo ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Instalar powerlevel10k

Editar o arquivo .zshrc e adicionar a linha abaixo dentro da execução do zinit

zinit ice depth=1; zinit light romkatv/powerlevel10k

Configurar o powerlevel10k

Digite no terminal:

p10k configure

Caso os ícones não apareçam durante a instalação, instale as fonte MesloGLS, disponível em https://github.com/romkatv/powerlevel10k/blob/master/font.md

Sete a fonte no MesloGLS NF no terminal:

image

Deixe o arquivo .zshrc mais ou menos assim:

https://gist.github.com/juniormartinxo/0651335e890a2549059c6c500a006fb1

Referências:

https://www.aluiziodeveloper.com.br/instalando-o-zsh-e-oh-my-zsh-no-wsl-ubuntu/

https://dev.to/erickrock80/pt-br-instalando-oh-my-zsh-no-windows-terminal-3a8l

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

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