Skip to content

Instantly share code, notes, and snippets.

@henriquesebastiao
Created September 5, 2023 19:25
Show Gist options
  • Save henriquesebastiao/bbce8eaf0ae57592f4937d79c04ac3c1 to your computer and use it in GitHub Desktop.
Save henriquesebastiao/bbce8eaf0ae57592f4937d79c04ac3c1 to your computer and use it in GitHub Desktop.
Etapas de configuração oh my zsh no linux.
# Instalando ZSH
sudo apt install zsh -y
# Instalando dependências
sudo apt install -f -y
# Configurando zsh
chsh -s /bin/zsh
zsh
# Instalar Oh-my-zsh! -> https://ohmyz.sh/
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Instalar Spaceship Prompt
# https://github.com/spaceship-prompt/spaceship-prompt
git clone https://github.com/spaceship-prompt/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"
# Mudar ~/.zshrc -> ZSH_THEME="spaceship"
# Instalar Zsh Autosuggestions
# https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Instalar Zsh Syntax Highlighting
# https://github.com/zsh-users/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Mudar plugins
# plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# Font optional (https://github.com/pdf/ubuntu-mono-powerline-ttf)
mkdir -p ~/.fonts
git clone https://github.com/pdf/ubuntu-mono-powerline-ttf.git ~/.fonts/ubuntu-mono-powerline-ttf
fc-cache -vf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment