Skip to content

Instantly share code, notes, and snippets.

@Alexjununo
Last active July 24, 2023 21:57
Show Gist options
  • Save Alexjununo/d67d5ae2e123ef68683f2416ec622366 to your computer and use it in GitHub Desktop.
Save Alexjununo/d67d5ae2e123ef68683f2416ec622366 to your computer and use it in GitHub Desktop.
install zsh

Instalar ZSH

sudo apt-get install zsh

Zsh como default

chsh -s $(which zsh)

Instalando Oh My Zsh

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

Instalando plugins

git clone https://github.com/zsh-users/zsh-autosuggestions \$ZSH_CUSTOM/plugins/zsh-autosuggestions

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

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install

Configurar plugins

sudo nano ~/.zshrc

plugins=(
  git
  zsh-autosuggestions
  fzf
  docker
)

Bonus: Instalar spaceship

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

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

Abrir zshrc e adicionar tema ZSH_THEME="spaceship"

sudo nano ~/.zshrc

Links de apoio

Instalando e configurando Oh My Zsh + Spaceship Theme

Oh My Zsh: melhorando a sua produtividade no terminal

Personalizar prompt

Prompt configuration

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