Starship/fr: Difference between revisions
Created page with "=== en utilisant Global Configuration ===" |
m fix link |
||
(38 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
[https://starship.rs/ Starship] est un prompt rapide, personnalisable et minimal pour n'importe quel shell. Écrit en Rust, il affiche des informations pertinentes comme le répertoire actuel, le statut Git, les versions d'exécution, et plus encore, s'adaptant au contexte avec une configuration minimale. Il prend en charge plusieurs shells, y compris '''Bash''', [https://wiki.nixos.org/wiki/Zsh '''Zsh'''], [https://wiki.nixos.org/wiki/Fish '''Fish'''], '''PowerShell''' et de nombreux autres shells, et votre configuration restera persistante sur tous ces shells, tout en étant conçue pour la rapidité et l'efficacité. | |||
[https://starship.rs/ Starship] | |||
== Installation == | == Installation == | ||
Line 22: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Après avoir modifié votre configuration, appliquez les modifications en exécutant: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 30: | Line 26: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
< | <span id="Using_Home_Configuration"></span> | ||
=== | === en utilisant Home Configuration === | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 39: | Line 34: | ||
]; | ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Après avoir modifié votre configuration, appliquez les modifications en exécutant: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 47: | Line 40: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Configuration == | == Configuration == | ||
< | <span id="Basic"></span> | ||
=== | === Basique === | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.starship.enable = true; #enable starship | programs.starship.enable = true; #enable starship | ||
</syntaxhighlight> | </syntaxhighlight> | ||
après avoir installé Starship, vous devez le sourcer dans votre shell | |||
Bash: | Bash: | ||
Line 74: | Line 62: | ||
starship init fish | source | starship init fish | source | ||
</syntaxhighlight> | </syntaxhighlight> | ||
si vous utilisez d'autres shells que ceux que je viens de mentionner, veuillez vous rendre ici | |||
< | <span id="Advanced"></span> | ||
=== | === Avancé === | ||
Vous pouvez personnaliser Starship avec Nix (voici un extrait pour comprendre) | |||
<nowiki>:</nowiki> | <nowiki>:</nowiki> | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.starship = { | programs.starship = { | ||
Line 101: | Line 84: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
< | Comme nous ne pouvons pas inclure toutes les options sur Starship, voici un lien GitHub. <nowiki> [https://gist.github.com/fe2-Nyxar/042350a74c12c7da7725dffec0f5d4f7 contenant toutes les options de configuration] </nowiki> | ||
</ | |||
< | et voici la documentation officielle pour expliquer chaque option <nowiki> [https://starship.rs/config/ starship guide de configuration] </nowiki> | ||
</ | |||
Bonne chance pour la configuration :D | |||
[[Category:Shell]] | [[Category:Shell]] |