Un thème sombre, élégant et lisible pour Oh My Posh, conçu pour un usage quotidien en développement.
Il affiche l’heure, le chemin, la branche Git, les runtimes (Node/Python/Docker/Kubernetes/AWS), le temps d’exécution et le statut de la commande — le tout dans une direction artistique dark & moody.
- Thème :
~/.poshthemes/moody-dev.omp.json - Documentation :
README.md
brew install oh-my-poshbrew tap homebrew/cask-fonts
brew install --cask font-jetbrains-mono-nerd-font
# Optionnel : compatibilité maximale des glyphes
brew install --cask font-nerd-font-symbols-only- iTerm2 : Profiles → Text → Font → JetBrainsMono Nerd Font
- Terminal macOS : Preferences → Profiles → Text → Change… → JetBrainsMono Nerd Font
➡️ Redémarre ton terminal après changement.
mkdir -p ~/.poshthemes
# Copie ici ton fichier moody-dev.omp.jsonecho 'eval "$(oh-my-posh init zsh --config ~/.poshthemes/moody-dev.omp.json)"' >> ~/.zshrc
source ~/.zshrcecho 'eval "$(oh-my-posh init bash --config ~/.poshthemes/moody-dev.omp.json)"' >> ~/.bash_profile
source ~/.bash_profile- Time — heure au format 24h (modifiable)
- Path — chemin stylisé powerline
- Git — branche + statut (ajouts, modifications, suppressions, stash, upstream)
- Node — version détectée selon projet
- Python — venv/conda (si actif)
- Docker — contexte (si actif)
- Kubernetes — contexte + namespace
- AWS — profil + région actifs
- Execution time — durée de la dernière commande
- Status — code retour
- Battery — affichage à droite (Zsh uniquement)
| Élément | Couleur |
|---|---|
| Bleu | #7aa2f7 |
| Cyan | #7dcfff |
| Magenta | #bb9af7 |
| Vert | #9ece6a |
| Orange | #e0af68 |
| Rouge | #f7768e |
| Fond | #1a1b26 |
| Texte | #c0caf5 |
Dans executiontime.properties.threshold :
"threshold": 200Dans le segment time :
"time_format": "15:04:05"Dans le segment git :
"fetch_status": falseBash : non supporté.
Si tu veux afficher executiontime en Bash → place-le dans prompt au lieu de rprompt.
✔ Vérifie que la Nerd Font est bien activée ✔ Redémarre ton terminal
✔ Vérifie la ligne d’init dans ~/.zshrc ou ~/.bash_profile
✔ Recharge le shell :
source ~/.zshrcoh-my-posh debug --config ~/.poshthemes/moody-dev.omp.jsonoh-my-posh print-shell --config ~/.poshthemes/moody-dev.omp.jsonCe thème est fourni tel quel. Libre à toi de le modifier, partager ou publier — pense simplement à ajouter une capture d’écran.
