Starship/fr: Difference between revisions

Nyxar77 (talk | contribs)
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/>
<div lang="en" dir="ltr" class="mw-content-ltr">
[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] is a fast, customizable, and minimal prompt for any shell. written in Rust, It displays relevant information like the current directory, Git status, runtime versions, and more, adapting to the context with minimal configuration. It supports multiple shells, including '''Bash''', [https://wiki.nixos.org/wiki/Zsh '''Zsh'''], [https://wiki.nixos.org/wiki/Fish '''Fish'''], '''PowerShell''' and a lot of other shells, and your configuration will stay persistent across all these shells and is designed for speed and efficiency.
</div>


== Installation ==
== Installation ==
Line 22: Line 20:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
Après avoir modifié votre configuration, appliquez les modifications en exécutant:
After modifying your configuration, apply the changes by running:
</div>


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 30: Line 26:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Using_Home_Configuration"></span>
=== Using Home Configuration ===
=== en utilisant Home Configuration ===
</div>


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 39: Line 34:
];
];
</syntaxhighlight>
</syntaxhighlight>
<div lang="en" dir="ltr" class="mw-content-ltr">
Après avoir modifié votre configuration, appliquez les modifications en exécutant:
After updating your configuration, apply the changes by running:
</div>


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 47: Line 40:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
== Configuration ==
== Configuration ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Basic"></span>
=== Basic ===
=== Basique ===
</div>


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
   programs.starship.enable = true; #enable starship
   programs.starship.enable = true; #enable starship
</syntaxhighlight>
</syntaxhighlight>
<div lang="en" dir="ltr" class="mw-content-ltr">
après avoir installé Starship, vous devez le sourcer dans votre shell
after you have installed starship you need to source it in your shell
</div>


Bash:
Bash:
Line 74: Line 62:
starship init fish | source
starship init fish | source
</syntaxhighlight>
</syntaxhighlight>
<div lang="en" dir="ltr" class="mw-content-ltr">
si vous utilisez d'autres shells que ceux que je viens de mentionner, veuillez vous rendre ici
if you use other shells than what I just mentioned please head to this [https://starship.rs/guide/#step-2-set-up-your-shell-to-use-starship page]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Advanced"></span>
=== Advanced ===
=== Avancé ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Vous pouvez personnaliser Starship avec Nix (voici un extrait pour comprendre)
you can customize starship with Nix (here's a snippet to understand)
<nowiki>:</nowiki>
<nowiki>:</nowiki>
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.starship = {
programs.starship = {
Line 101: Line 84:
};
};
</syntaxhighlight>
</syntaxhighlight>
<div lang="en" dir="ltr" class="mw-content-ltr">
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>
since we can't include every option on Starship here's a GitHub link [https://gist.github.com/s-a-c/0e44dc7766922308924812d4c019b109#file-starship-nix/ containing every configuration option]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
et voici la documentation officielle pour expliquer chaque option <nowiki> [https://starship.rs/config/ starship guide de configuration] </nowiki>
and here's the official documentation to explain each option [https://starship.rs/config/ starship configuration guide]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Bonne chance pour la configuration :D
good luck
</div> :D


[[Category:Shell]]
[[Category:Shell]]