Outils pour utilisateurs

Outils du site


logiciels:zsh

Installation Ubuntu

$ sudo apt-get install zsh
$ zsh --version  # Expected result: zsh 4.3.9 ou plus

Mettre zsh comme shell par défaut :

$ chsh -s $(which zsh)

Installation Mac

  1. Installer HomeBrew
  2. Installer zsh :
    $ brew install zsh
  3. Mettre zsh comme shell par défaut :
    $ sudo -s 'echo /usr/local/bin/zsh >> /etc/shells' && chsh -s /usr/local/bin/zsh
Si c'est une installation Windows, exécuter ZSH automatiquement avec le .bashrc. Voir Installer ZSH.

Installer Oh my Zsh

$ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Configurer :

$ nano ~/.zshrc

Installing ZSH

Oh my Zsh

Configuration dans ~./zshrc.

  • Theme : ys
  • Plugins : git

Aliases

alias glcp='git --no-pager log --pretty="%h - %an, %ar : %s"'

Named Directories

$ hash -d w=~/Projects/projet-important
$ hash -d s=~/Documents/SecretFiles
$ hash -d h=$(pwd)

Powelevel9k

Erreurs

prompt_load:43: command not found: bc

Installer bc:

$ sudo apt-get install bc

Couleurs: 256 COLORS - CHEAT SHEET

Plugins

Syntax Highlighting

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

Ajouter zsh-syntax-highlighting aux plugins du ~/.zshrc.

logiciels/zsh.txt · Dernière modification : 2022/02/02 00:42 de 127.0.0.1