$ 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)
$ brew install zsh
$ sudo -s 'echo /usr/local/bin/zsh >> /etc/shells' && chsh -s /usr/local/bin/zsh
.bashrc
. Voir Installer ZSH.
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Configurer :
$ nano ~/.zshrc
Configuration dans ~./zshrc
.
alias glcp='git --no-pager log --pretty="%h - %an, %ar : %s"'
$ hash -d w=~/Projects/projet-important $ hash -d s=~/Documents/SecretFiles $ hash -d h=$(pwd)
Erreurs
prompt_load:43: command not found: bc
Installer bc
:
$ sudo apt-get install bc
Couleurs: 256 COLORS - CHEAT SHEET
$ 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
.