Skip to content

Instantly share code, notes, and snippets.

@RikoKami
Last active February 13, 2022 11:07
Show Gist options
  • Save RikoKami/45908c4aaaf4fa728e35de182dec84a7 to your computer and use it in GitHub Desktop.
Save RikoKami/45908c4aaaf4fa728e35de182dec84a7 to your computer and use it in GitHub Desktop.
Zsh config && plugins
sudo apt install zsh
zsh --version
curl --version
sudo apt install curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# selecione um tema legal aqui: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
nano .zshrc
# trocar o ZSH_THEME="nomedotemaescolhido" salva, fecha e reinicia
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
#or
sh -c "$(curl -fsSL https://raw.githubusercontent.com/z-shell/zinit/main/doc/install.sh)"
sudo nano .zshrc
# verifica se foi inserido o zinit para os plugins no final do arquivo
# inserir plugins após "### End of Zinit's installer chunk"
zinit light zdharma/fast-syntax-highlighting # or zdharma-continuum/fast-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
# fecha e abre novamente o terminal pra instalar todos os plugins ✨
CTRL + O = salva
ENTER = confirma
CTRL + X = sai
@RikoKami
Copy link
Author

RikoKami commented Nov 10, 2021

Caso comando de npm/node/nvm não for encontrado, adicionar no .zshrc :

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh # This install nvm
export NVM_DIR=~/.nvm
 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
nvm -v 

@ss-o
Copy link

ss-o commented Feb 13, 2022

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