Skip to content
✍🏼  Publié par Mathieu BESSON

Installation de ZSH et OhMyZSH sous Linux

Prérequis

  • Une distribution linux

Nécéssaires avant installation

  • Mise à jour des repositories apt
sudo apt update && sudo apt upgrade

Installation

  • Installation de ZSH
sudo apt install zsh
  • Changement de shell par défaut
sudo chsh -s /bin/zsh
  • Installation de OhMyZSH
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
  • Installation des plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
  • Modification des configurations .zshrc : thème agnoster et ajout des plugins
ZSH_THEME="agnoster"

plugins=(last-working-dir git zsh-autosuggestions zsh-syntax-highlighting zsh-completions)
  • Installer la font du thème
sudo apt-get install fonts-powerline
  • Activation de la modification des configurations
source ~/.zshrc