Developer Notes
  • Sommaire
  • Linux
    • Solus
      • Installation
      • Bashrc
      • Serveur LAMP
      • Virtualhost
        • Configuration
        • Example
    • Linux Mint
      • Configuration
      • Partition endommagée
  • Terminal
    • Git
    • Oh-My-Zsh
    • Commandes bash
  • VS Code
    • Installation
    • Les extensions
Powered by GitBook
On this page
  • Installation
  • Personnalisation
  • Zsh par défaut
  1. Terminal

Oh-My-Zsh

Comment installer oh-my-zsh pour avoir un joli terminal

PreviousGitNextCommandes bash

Last updated 5 years ago

Installation

1. Installer Zsh

sudo apt install zsh

2. Installer Oh-My-Zsh

permet de personnaliser plus facilement Zsh pour installer des thèmes par exemple

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Personnalisation

1. Thème

  1. Changer la ligne 11 du fichier ~/.zshrc

  2. Chosir un thème disponible

2. Git

Si l'on veut ne pas avoir de sortie lorsque l'on tape git branch ou git log :

git config --global core.pager ''

3. Auto-complétion

  • Ajouter la ligne suivante à votre .zshrc ( ou ajoute une option avec la commande setopt)

setopt correct

Désormais pour accéder à Document/info ou peut simplement taper : cd ~/D/i

Zsh par défaut

Pour que zsh devienne votre terminal par défaut (et remplacer bash)

chsh -s $(which zsh)
Oh-My-Zsh
ici