Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:kawer:tutos:ohmyzsh [23/01/2022 18:12] kawer [Configuration] |
utilisateurs:kawer:tutos:ohmyzsh [23/01/2022 20:49] kawer [Configuration] |
||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | ==== Prérequis ==== | ||
+ | <code root>apt update && apt install git curl zsh fonts-powerline</code> | ||
- | Paquets Nécessaire : | + | ==== OhMyZsh ==== |
- | <code root>apt update && apt install git curl zsh</code> | + | |
- | + | ||
- | === OhMyZsh === | + | |
+ | Récupération et installation du framework : | ||
<code user>sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"</code> | <code user>sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"</code> | ||
Ligne 22: | Ligne 22: | ||
</code> | </code> | ||
- | === PowerLevel10k === | + | === Plugin additionnel === |
- | + | ||
- | <code user>git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k</code> | + | |
- | // | + | |
- | **Plugin additionnel :**// | + | |
//Prédiction basé sur les commandes contenu dans le .zsh_history :// | //Prédiction basé sur les commandes contenu dans le .zsh_history :// | ||
Ligne 32: | Ligne 28: | ||
//Coloration Syntaxique :// | //Coloration Syntaxique :// | ||
<code user>git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting</code> | <code user>git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting</code> | ||
- | ===== Configuration ===== | ||
- | <note tip>L'affichage des glyphes nécessite une police appropriée.</note> | + | ==== PowerLevel10k ==== |
- | === OhMyZsh === | + | Récupération du thème : |
+ | <code user>git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k</code> | ||
+ | ===== Configuration ===== | ||
+ | |||
+ | ==== OhMyZsh ==== | ||
+ | Aux choix de l'éditeur texte, par exemple avec nano : | ||
<code user>nano ~/.zshrc</code> | <code user>nano ~/.zshrc</code> | ||
- | **-Ajouter ceci en première ligne :** | + | |
+ | Ajouter ceci en première ligne : | ||
<code>export TERM="xterm-256color"</code> | <code>export TERM="xterm-256color"</code> | ||
- | **-Cherchez : ZSH_THEME="xxx" et remplacer par : ** | + | La section / lignes ZSH_THEME="xxx" est à remplacer par : |
<code>ZSH_THEME="powerlevel10k/powerlevel10k"</code> | <code>ZSH_THEME="powerlevel10k/powerlevel10k"</code> | ||
- | **-Cherchez : plugins=“xxx” et remplacer par : :** | + | La section / lignes plugins=“xxx” est à remplacer par : |
<code>plugins=( | <code>plugins=( | ||
zsh-autosuggestions | zsh-autosuggestions | ||
Ligne 65: | Ligne 66: | ||
</note> | </note> | ||
+ | ==== PowerLevel10k ==== | ||
+ | |||
+ | A venir .. | ||
===== Astuce ===== | ===== Astuce ===== | ||
--Selon votre distrib ou vos envies, vous pouvez personnaliser le logo (custom_debian_icon) en récupérant le code ici : https://www.nerdfonts.com/cheat-sheet | --Selon votre distrib ou vos envies, vous pouvez personnaliser le logo (custom_debian_icon) en récupérant le code ici : https://www.nerdfonts.com/cheat-sheet |