Como instalar o Oh my ZSH

Renan Gabriel
Jul 25, 2017 · 2 min read
https://github.com/robbyrussell/oh-my-zsh

Oh my ZSH é um framework open-source dirigido pela comunidade para gerenciar a configuração do ZSH (Terminal feito para uso interativo) e melhorar o workflow de desenvolvimento. Ele inclui mais de 200 plugins opcionais (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), e mais de 140 temas.

Pré-requisitos

Aviso: Oh My Zsh funciona melhor no macOS e Linux.

  • Sistema operacional baseado no Unix (macOS or Linux)
  • ZSH. Instalando ZSH
  • curl ou wget devem estar instalados
  • git deve estar instalado

Instalar zsh

sudo apt-get install zsh

Instalar oh-my-zsh

Via curlsh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"Via wgetsh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Temas

Exemplo de tema

Nesse link tem os temas do oh-my-zsh. Para mudar de tema é preciso entrar no arquivo .zshrc e alterar a linha ZSH_THEME="robbyrussell" pelo tema que preferir.

sudo nano ~/.zshrc
.zshrc

É interessante que no terminal você já consegue visualizar a branch que está seu projeto (evitando ter que digitar git branch), o diretório e horário (nesse tema específico). Também é possível navegar entre as pastas sem utilizar o comando cd.

Referências

Renan Gabriel

Written by

https://github.com/renangabriel27