From 6698a110458152b9931e6b2d6c3a0495700d762a Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Sun, 30 Jul 2023 09:29:01 -0400 Subject: [PATCH] docs(i18n): new Crowdin updates (#5237) * New translations README.md (French) * New translations README.md (French) * New translations README.md (Russian) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Norwegian) * New translations README.md (French) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Polish) * New translations README.md (Spanish) * New translations README.md (Japanese) * New translations README.md (Polish) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Chinese Simplified) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Ukrainian) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (French) * New translations README.md (Russian) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Vietnamese) * New translations README.md (Vietnamese) * New translations README.md (Vietnamese) * New translations README.md (French) * New translations README.md (Russian) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (Polish) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Ukrainian) * New translations README.md (Ukrainian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Ukrainian) --- docs/ar-SA/README.md | 5 +- docs/ar-SA/config/README.md | 33 +++++++--- docs/ar-SA/guide/README.md | 7 +- docs/ckb-IR/README.md | 5 +- docs/ckb-IR/config/README.md | 33 +++++++--- docs/ckb-IR/guide/README.md | 7 +- docs/de-DE/README.md | 5 +- docs/de-DE/config/README.md | 33 +++++++--- docs/de-DE/guide/README.md | 7 +- docs/es-ES/README.md | 5 +- docs/es-ES/config/README.md | 33 +++++++--- docs/es-ES/guide/README.md | 7 +- docs/fr-FR/README.md | 5 +- docs/fr-FR/config/README.md | 33 +++++++--- docs/fr-FR/guide/README.md | 7 +- docs/id-ID/README.md | 5 +- docs/id-ID/config/README.md | 33 +++++++--- docs/id-ID/guide/README.md | 7 +- docs/it-IT/README.md | 5 +- docs/it-IT/config/README.md | 33 +++++++--- docs/it-IT/guide/README.md | 7 +- docs/ja-JP/README.md | 5 +- docs/ja-JP/config/README.md | 33 +++++++--- docs/ja-JP/guide/README.md | 7 +- docs/ko-KR/README.md | 5 +- docs/ko-KR/config/README.md | 33 +++++++--- docs/ko-KR/guide/README.md | 7 +- docs/nl-NL/README.md | 5 +- docs/nl-NL/config/README.md | 33 +++++++--- docs/nl-NL/guide/README.md | 7 +- docs/no-NO/README.md | 5 +- docs/no-NO/config/README.md | 33 +++++++--- docs/no-NO/guide/README.md | 7 +- docs/pl-PL/README.md | 5 +- docs/pl-PL/config/README.md | 33 +++++++--- docs/pl-PL/guide/README.md | 7 +- docs/pt-BR/README.md | 5 +- docs/pt-BR/config/README.md | 121 ++++++++++++++++++++--------------- docs/pt-BR/guide/README.md | 7 +- docs/pt-PT/README.md | 5 +- docs/pt-PT/config/README.md | 33 +++++++--- docs/pt-PT/guide/README.md | 7 +- docs/ru-RU/README.md | 5 +- docs/ru-RU/config/README.md | 33 +++++++--- docs/ru-RU/guide/README.md | 7 +- docs/tr-TR/README.md | 5 +- docs/tr-TR/config/README.md | 33 +++++++--- docs/tr-TR/guide/README.md | 7 +- docs/uk-UA/README.md | 5 +- docs/uk-UA/config/README.md | 33 +++++++--- docs/uk-UA/guide/README.md | 7 +- docs/vi-VN/README.md | 11 ++-- docs/vi-VN/config/README.md | 33 +++++++--- docs/vi-VN/guide/README.md | 59 +++++++++-------- docs/zh-CN/README.md | 5 +- docs/zh-CN/config/README.md | 33 +++++++--- docs/zh-CN/guide/README.md | 7 +- docs/zh-TW/README.md | 5 +- docs/zh-TW/config/README.md | 33 +++++++--- docs/zh-TW/guide/README.md | 7 +- 60 files changed, 673 insertions(+), 373 deletions(-) diff --git a/docs/ar-SA/README.md b/docs/ar-SA/README.md index 18f935c4..d424337c 100644 --- a/docs/ar-SA/README.md +++ b/docs/ar-SA/README.md @@ -149,7 +149,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh أضف ما يلي إلى نهاية `~/.xonshrc`: diff --git a/docs/ar-SA/config/README.md b/docs/ar-SA/config/README.md index e3a5f380..d0b30c34 100644 --- a/docs/ar-SA/config/README.md +++ b/docs/ar-SA/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | الافتراضي | الوصف | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | الافتراضي | الوصف | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/ar-SA/guide/README.md b/docs/ar-SA/guide/README.md index 9fe3ee79..9a0e3d0b 100644 --- a/docs/ar-SA/guide/README.md +++ b/docs/ar-SA/guide/README.md @@ -223,9 +223,8 @@ curl -sS https://starship.rs/install.sh | sh | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS +7 | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/ckb-IR/README.md b/docs/ckb-IR/README.md index 37c6a778..ec388de2 100644 --- a/docs/ckb-IR/README.md +++ b/docs/ckb-IR/README.md @@ -149,7 +149,7 @@ description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و ب ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و ب And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh ئەمەی دێت زیادبکە بۆ کۆتایی پەڕگەی `~/.xonshrc`: diff --git a/docs/ckb-IR/config/README.md b/docs/ckb-IR/config/README.md index 2f68e00f..bd803efa 100644 --- a/docs/ckb-IR/config/README.md +++ b/docs/ckb-IR/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/ckb-IR/guide/README.md b/docs/ckb-IR/guide/README.md index 8fdcb935..f4f5d6dd 100644 --- a/docs/ckb-IR/guide/README.md +++ b/docs/ckb-IR/guide/README.md @@ -219,9 +219,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -341,10 +340,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/de-DE/README.md b/docs/de-DE/README.md index b81c2937..032a544d 100644 --- a/docs/de-DE/README.md +++ b/docs/de-DE/README.md @@ -149,7 +149,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P ::: warning - Das wird sich in Zukunft ändern. Nur Nushell v0.73+ wird unterstützt. + Das wird sich in Zukunft ändern. Nur Nushell v0.78+ wird unterstützt. ::: @@ -162,9 +162,10 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P Und füge folgendes am Ende deiner Nushell-Konfiguration hinzu (du findest diese, indem du folgenden Befehl in Nushell ausführst `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Füge folgendes an das Ende von `~/.xonshrc` hinzu: diff --git a/docs/de-DE/config/README.md b/docs/de-DE/config/README.md index 8807560b..d5d65f99 100644 --- a/docs/de-DE/config/README.md +++ b/docs/de-DE/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' Das `directory` -Modul zeigt den Pfad zu Ihrem aktuellen Verzeichnis an, abgeschnitten auf drei übergeordnete Ordner. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Optionen -| Option | Standartwert | Beschreibung | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | Das Format für das Modul. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | Stil für dieses Modul. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Standartwert | Beschreibung | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | Das Format für das Modul. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | Stil für dieses Modul. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/de-DE/guide/README.md b/docs/de-DE/guide/README.md index 1655e69b..ef1bfa88 100644 --- a/docs/de-DE/guide/README.md +++ b/docs/de-DE/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Und füge folgendes am Ende deiner Nushell-Konfiguration hinzu (du findest diese, indem du folgenden Befehl in Nushell ausführst `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/es-ES/README.md b/docs/es-ES/README.md index f0dfb145..4f7de92f 100644 --- a/docs/es-ES/README.md +++ b/docs/es-ES/README.md @@ -149,7 +149,7 @@ description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente ::: warning - Esto cambiará en el futuro. Sólo se admite Nushell v0.73+. + Esto cambiará en el futuro. Sólo se admite Nushell v0.78+. ::: @@ -162,9 +162,10 @@ description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente Añade lo siguiente al final de tu configuración de Nushell (encuéntrala ejecutando `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Añade lo siguiente al final de `~/.xonshrc`: diff --git a/docs/es-ES/config/README.md b/docs/es-ES/config/README.md index cc432264..2735df22 100644 --- a/docs/es-ES/config/README.md +++ b/docs/es-ES/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' El módulo `directory` muestra la ruta a tu directorio actual, truncado a tres carpetas padres. Tu directorio se truncará a la raíz del repositorio git en el que te encuentres. -Cuando usas el estilo fish de la opción pwd, en lugar de ocultar la ruta truncada, verás una versión acortada del nombre de cada directorio basada en el número que activaste para la opción. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. Por ejemplo, dado `~/Dev/Nix/nixpkgs/pkgs` donde `nixpkgs` es la raíz del repositorio y la opción establecida a `1`. Ahora verás `~/D/N/nixpkgs/pkgs`, mientras que antes habría sido `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Opciones -| Opción | Predeterminado | Descripción | -| ----------- | ---------------------------- | ----------------------------------------------------------------- | -| `threshold` | `2` | Mostrar el umbral. | -| `format` | `'[$symbol$shlvl]($style) '` | El formato del módulo. | -| `symbol` | `'↕️ '` | El símbolo utilizado para representar el `SHLVL`. | -| `repetir` | `false` | Hace que el `symbol` se repita con la cantidad actual de `SHLVL`. | -| `style` | `'bold yellow'` | El estilo del módulo. | -| `disabled` | `true` | Deshabilita el módulo `shlvl`. | +| Opción | Predeterminado | Descripción | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Mostrar el umbral. | +| `format` | `'[$symbol$shlvl]($style) '` | El formato del módulo. | +| `symbol` | `'↕️ '` | El símbolo utilizado para representar el `SHLVL`. | +| `repetir` | `false` | Hace que el `symbol` se repita con la cantidad actual de `SHLVL`. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | El estilo del módulo. | +| `disabled` | `true` | Deshabilita el módulo `shlvl`. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity El módulo `singularity` muestra la imagen de [singularity](https://sylabs.io/singularity/) actual, si se encuentra dentro de un contenedor y `$SINGULARITY_NAME` está establecido. diff --git a/docs/es-ES/guide/README.md b/docs/es-ES/guide/README.md index 1eaefb08..64c516b1 100644 --- a/docs/es-ES/guide/README.md +++ b/docs/es-ES/guide/README.md @@ -223,9 +223,8 @@ Alternativamente, instale Starship usando cualquiera de los siguientes gestores | **_Cualquiera_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Cualquiera_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Cualquiera_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Cualquiera_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Paquetes Gentoo](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Añade lo siguiente al final de tu configuración de Nushell (encuéntrala ejecutando `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Nota: Sólo se admite Nushell v0.73+ +Nota: Sólo se admite Nushell v0.78+ diff --git a/docs/fr-FR/README.md b/docs/fr-FR/README.md index 6e641db1..93b8d498 100644 --- a/docs/fr-FR/README.md +++ b/docs/fr-FR/README.md @@ -149,7 +149,7 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers ::: warning - Ceci va changer dans le futur. Seul Nushell v0.73+ est supporté. + Ceci va changer dans le futur. Seul Nushell v0.78+ est supporté. ::: @@ -162,9 +162,10 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers Ajoutez le code suivant à la fin de votre configuration Nushell (trouvez-la en exécutant `$nu.config path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Ajouter ce qui suit à la fin de `~/.xonshrc`: diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md index 8e9a17b4..8ea28092 100644 --- a/docs/fr-FR/config/README.md +++ b/docs/fr-FR/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' Le module `directory` affiche le chemin du dossier courant, tronqué à 3 dossiers parents. Votre dossier sera également tronqué à la racine du repo git dans lequel vous vous trouvez actuellement. -Lorsque vous utilisez le style de pwd de fish, au lieu de cacher le chemin tronqué, vous verrez une abréviation du nom de chaque dossier, en fonction du nombre que vous avez utilisé comme valeur. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. Par exemple, `~/Dev/Nix/nixpkgs/pkgs` où `nixpkgs` est la racine du repo, et l'option définie à `1`. Vous verrez maintenant `~/D/N/nixpkgs/pkgs`, alors que vous auriez vu `nixpkgs/pkgs` avant. @@ -3608,14 +3608,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Défaut | Description | -| ----------- | ---------------------------- | ----------------------------------------------------------------------- | -| `threshold` | `2` | Seuil d’affichage. | -| `format` | `'[$symbol$shlvl]($style) '` | Format du module. | -| `symbole` | `'↕️ '` | Le symbole utilisée pour représenter le `SHLVL`. | -| `repeat` | `false` | Fait répéter `symbol` autant de fois que la valeur actuelle de `SHLVL`. | -| `style` | `'bold yellow'` | Le style pour le module. | -| `disabled` | `true` | Désactive le module `shlvl`. | +| Option | Défaut | Description | +| --------------- | ---------------------------- | ----------------------------------------------------------------------- | +| `threshold` | `2` | Seuil d’affichage. | +| `format` | `'[$symbol$shlvl]($style) '` | Format du module. | +| `symbole` | `'↕️ '` | Le symbole utilisée pour représenter le `SHLVL`. | +| `repeat` | `false` | Fait répéter `symbol` autant de fois que la valeur actuelle de `SHLVL`. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | Le style pour le module. | +| `disabled` | `true` | Désactive le module `shlvl`. | ### Variables @@ -3638,6 +3639,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity Le module `singularity` affiche l’image [Singularity](https://sylabs.io/singularity/) courante, quand vous êtes à l’intérieur d’un conteneur et que `$SINGULARITY_NAME` est définie. diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md index 8469b3d2..630645be 100644 --- a/docs/fr-FR/guide/README.md +++ b/docs/fr-FR/guide/README.md @@ -223,9 +223,8 @@ Vous pouvez aussi installer Starship en utilisant l’un de ces gestionnaires de | **_Toutes_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Toutes_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Toutes_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Toutes_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Paquets Alpine Linux](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Paquets Gentoo](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Ajoutez le code suivant à la fin de votre configuration Nushell (trouvez-la en exécutant `$nu.config path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Seul Nushell v0.73+ est supporté +Note: Seul Nushell v0.78+ est supporté diff --git a/docs/id-ID/README.md b/docs/id-ID/README.md index 5a5ab978..8ed8bf3a 100644 --- a/docs/id-ID/README.md +++ b/docs/id-ID/README.md @@ -149,7 +149,7 @@ description: Starship merupakan sebuah prompt yang minimal, super cepat, dan san ::: warning - Hal ini dapat berubah di kemudian hari. Hanya Nushell v0.73+ yang menerima dukungan. + Hal ini dapat berubah di kemudian hari. Hanya Nushell v0.78+ yang menerima dukungan. ::: @@ -162,9 +162,10 @@ description: Starship merupakan sebuah prompt yang minimal, super cepat, dan san Lalu tambahkan baris berikut di baris terakhir konfigurasi Nushell (temukan dengan menjalankan `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Tambahkan skrip berikut pada baris akhir `~/.xonshrc`: diff --git a/docs/id-ID/config/README.md b/docs/id-ID/config/README.md index 44ef32b0..ed2b8180 100644 --- a/docs/id-ID/config/README.md +++ b/docs/id-ID/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' Modul `directory` menampilkan arah ke direkori terkinimu, disingkat ke tiga folder induk. Direkrotimu juga akan disingkat ke root dari git repo di tempatmu berada saat ini. -Ketika kamu menggunakan penataan pwd option fish, alih-alih menyembunyikan jalur yang disingkat, kamu akan melihat nama yang disingkat untuk tiap-tiap direktori berdasarkan dari jumlah nomor yang kamu aktifkan untuk opsi tersebut. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. Sebagai contoh, untuk `~/Dev/Nix/nixpkgs/pkgs` dimana `nixpkgs` merupakan root repo-nya, dan lalu opsinya diset menjadi `1`. Kamu akan melihat `~/D/N/nixpkgs/pkgs`, sedangkan sebelumnya direktori tersebut harusnya `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Opsi -| Opsi | Bawaan | Deskripsi | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `fromat` | `'[$symbol$shlvl]($style) '` | Format dari modul. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | Gaya penataan untuk modul. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Opsi | Bawaan | Deskripsi | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `fromat` | `'[$symbol$shlvl]($style) '` | Format dari modul. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | Gaya penataan untuk modul. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variabel @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/id-ID/guide/README.md b/docs/id-ID/guide/README.md index be5b2fcf..48cfe869 100644 --- a/docs/id-ID/guide/README.md +++ b/docs/id-ID/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Lalu tambahkan baris berikut di baris terakhir konfigurasi Nushell (temukan dengan menjalankan `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/it-IT/README.md b/docs/it-IT/README.md index 25fd57a3..a851d502 100644 --- a/docs/it-IT/README.md +++ b/docs/it-IT/README.md @@ -149,7 +149,7 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Aggiungi quanto segue alla fine di `~/.xonshrc`: diff --git a/docs/it-IT/config/README.md b/docs/it-IT/config/README.md index e8e8876b..1b7ff22d 100644 --- a/docs/it-IT/config/README.md +++ b/docs/it-IT/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Opzioni -| Opzione | Default | Descrizione | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | Lo stile per il modulo. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Opzione | Default | Descrizione | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | Lo stile per il modulo. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singolarità The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/it-IT/guide/README.md b/docs/it-IT/guide/README.md index da9759ab..90774728 100644 --- a/docs/it-IT/guide/README.md +++ b/docs/it-IT/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/ja-JP/README.md b/docs/ja-JP/README.md index 7e8d44be..48786a3d 100644 --- a/docs/ja-JP/README.md +++ b/docs/ja-JP/README.md @@ -149,7 +149,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ ::: warning - これは将来的に変更される可能性があります。 Nushell v0.73+ のみサポートされています。 + これは将来的に変更される可能性があります。 Nushell v0.78+ のみサポートされています。 ::: @@ -162,9 +162,10 @@ description: Starship はミニマルで、非常に高速で、カスタマイ そして、Nushellの設定ファイルの最後に以下を追記してください (`$nu.config-path` を実行してください): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh `~/.xonshrc` の最後に以下を追加してください: diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md index d2237e12..b66bfe9f 100644 --- a/docs/ja-JP/config/README.md +++ b/docs/ja-JP/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' `directory` モジュールは現在のディレクトリへのパスを表示します。親フォルダは3つまでに切り捨てられます。 git リポジトリ内にいる場合は、リポジトリのルートで切り捨てられます。 -fish スタイルの pwd オプションを使用している場合、切り捨てられたパスを非表示にする代わりに、オプションで有効にした数値に基づいた各ディレクトリの短縮名が表示されます。 +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. たとえば、`~/Dev/Nix/nixpkgs/pkgs`で、`nixpkgs` がリポジトリルートであり、オプションが `1` に設定されている場合を挙げます。 この場合、`nixpkgs/pkgs` の代わりに、`~/D/N/nixpkgs/pkgs` と表示されます。 @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### オプション -| オプション | デフォルト | 説明 | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | module のフォーマットです。 | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | モジュールのスタイルです。 | -| `disabled` | `true` | Disables the `shlvl` module. | +| オプション | デフォルト | 説明 | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | module のフォーマットです。 | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | モジュールのスタイルです。 | +| `disabled` | `true` | Disables the `shlvl` module. | ### 変数 @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md index c5c50c1d..84677ee3 100644 --- a/docs/ja-JP/guide/README.md +++ b/docs/ja-JP/guide/README.md @@ -223,9 +223,8 @@ curl -sS https://starship.rs/install.sh | sh | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu そして、Nushellの設定ファイルの最後に以下を追加してください( `$nu.config-path` を実行してください)。 ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -注意: Elvish v0.73以降でサポートされています +注意: Elvish v0.78以降でサポートされています diff --git a/docs/ko-KR/README.md b/docs/ko-KR/README.md index d7c096da..c3d7bbbd 100644 --- a/docs/ko-KR/README.md +++ b/docs/ko-KR/README.md @@ -149,7 +149,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh `~/.xonshrc` 의 끝부분에 아래 라인을 추가: diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md index d5aa335e..396fbb2c 100644 --- a/docs/ko-KR/config/README.md +++ b/docs/ko-KR/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/ko-KR/guide/README.md b/docs/ko-KR/guide/README.md index d3d6ba30..4fa27edd 100644 --- a/docs/ko-KR/guide/README.md +++ b/docs/ko-KR/guide/README.md @@ -223,9 +223,8 @@ curl -sS https://starship.rs/install.sh | sh | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/nl-NL/README.md b/docs/nl-NL/README.md index 71c5e908..68c324a1 100644 --- a/docs/nl-NL/README.md +++ b/docs/nl-NL/README.md @@ -149,7 +149,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Add the following to the end of `~/.xonshrc`: diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md index d5aa335e..396fbb2c 100644 --- a/docs/nl-NL/config/README.md +++ b/docs/nl-NL/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/nl-NL/guide/README.md b/docs/nl-NL/guide/README.md index 0ff2647a..ec9b9d83 100644 --- a/docs/nl-NL/guide/README.md +++ b/docs/nl-NL/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/no-NO/README.md b/docs/no-NO/README.md index 6095b368..cf21f679 100644 --- a/docs/no-NO/README.md +++ b/docs/no-NO/README.md @@ -149,7 +149,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p Og legg følgende til slutten av Nushell konfigurasjonen (finn det ved å kjøre `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Add the following to the end of `~/.xonshrc`: diff --git a/docs/no-NO/config/README.md b/docs/no-NO/config/README.md index d5aa335e..396fbb2c 100644 --- a/docs/no-NO/config/README.md +++ b/docs/no-NO/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/no-NO/guide/README.md b/docs/no-NO/guide/README.md index ef770790..f74b800c 100644 --- a/docs/no-NO/guide/README.md +++ b/docs/no-NO/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Noen_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Noen_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Noen_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Noen_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Og legg følgende til slutten av Nushell konfigurasjonen (finn det ved å kjøre `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Merk: Bare Nushell v0.73+ støttes +Merk: Bare Nushell v0.78+ støttes diff --git a/docs/pl-PL/README.md b/docs/pl-PL/README.md index e8f3523f..713ff476 100644 --- a/docs/pl-PL/README.md +++ b/docs/pl-PL/README.md @@ -149,7 +149,7 @@ description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz ::: warning - Ten sposób zmieni się w przyszłości. Działa tylko na Nushell v0.73+. + Ten sposób zmieni się w przyszłości. Działa tylko na Nushell v0.78+. ::: @@ -162,9 +162,10 @@ description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz Dodaj następujący kod na koniec Twojego pliku konfiguracyjnego Nushell (możesz go znaleźć uruchamiając `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Dodaj na koniec pliku `~/.xonshrc`: diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md index d8f6e363..10c03d70 100644 --- a/docs/pl-PL/config/README.md +++ b/docs/pl-PL/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/pl-PL/guide/README.md b/docs/pl-PL/guide/README.md index 9de0632f..0d5c7221 100644 --- a/docs/pl-PL/guide/README.md +++ b/docs/pl-PL/guide/README.md @@ -223,9 +223,8 @@ Alternatywnie, zainstaluj Starship używając dowolnego z następujących mened | **_Dowolna_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Dowolna_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Dowolna_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Dowolna_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk dodaj starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Dodaj następujący kod na koniec Twojego pliku konfiguracyjnego Nushell (możesz go znaleźć uruchamiając `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Uwaga: Obsługiwany jest tylko Nushell w wersji v0.73 wzwyż +Uwaga: Obsługiwany jest tylko Nushell w wersji v0.78 wzwyż diff --git a/docs/pt-BR/README.md b/docs/pt-BR/README.md index c6ddcced..cf2e696b 100644 --- a/docs/pt-BR/README.md +++ b/docs/pt-BR/README.md @@ -149,7 +149,7 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam ::: warning - Isto irá mudar no futuro. Somente Nushell v0.73+ é suportado. + Isto irá mudar no futuro. Somente Nushell v0.78+ é suportado. ::: @@ -162,9 +162,10 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Adicione o seguinte ao final do arquivo `~/.xonshrc`: diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md index 987b09d4..897722b0 100644 --- a/docs/pt-BR/config/README.md +++ b/docs/pt-BR/config/README.md @@ -175,17 +175,17 @@ Uma string de formato condicional envolta de `(` e `)` não será renderizada se Por exemplo: -- `'(@$region)'` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region. -- `'(some text)'` will always show nothing since there are no variables wrapped in the braces. -- When `$combined` is a shortcut for `\[$a$b\]`, `'($combined)'` will show nothing only if `$a` and `$b` are both `None`. This works the same as `'(\[$a$b\] )'`. +- `(@$region)` não vai exibir nada caso a variável `region` seja `None` ou vazia, caso contrario vai exibir `@` seguido pelo valor da variável region. +- `(texto qualquer)` não vai exibir nada sempre, pois não existe variável entre os parenteses. +- Quando usar `$combined` é um atalho para `\[$a$b\]`, `($combined)` só vai exibir algo se `$a` e `$b` são `None`. Isto funciona da mesma forma que `(\[$a$b\] )`. ### Correspondência negativa Muitos módulos têm variáveis `detect_extensions`, `detect_files`, e `detect_folders`. Estas receberão listas de strings para coresponder ou não. Opções "negativas", aquelas que não tem correspondencia, são indicadas com um caractere '!'. A presença de _varios_ indicadores negativos no diretório resultara que o módulo não sera correspondido. -Extensions are matched against both the characters after the last dot in a filename, and the characters after the first dot in a filename. For example, `foo.bar.tar.gz` will be matched against `bar.tar.gz` and `gz` in the `detect_extensions` variable. Files whose name begins with a dot are not considered to have extensions at all. +As extensões são combinadas com os dois caracteres após o último ponto em um nome de arquivo e os caracteres após o primeiro ponto em um nome de arquivo. Por exemplo, `foo.bar.tar.gz` vai ser comparada com `bar.tar.gz` e `gz` na `detect_extensions` variavel. Arquivos que o nome começa com um ponto não são considerados ter nenhuma extensão. -To see how this works in practice, you could match TypeScript but not MPEG Transport Stream files thus: +Para ver como isso funciona na prática, você pode combinar TypeScript mas não arquivos MPEG Transport Stream: ```toml detect_extensions = ['ts', '!video.ts', '!audio.ts'] @@ -197,15 +197,15 @@ Esta é a lista de opções de configuração em todo o prompt. ### Opções -| Opções | Padrão | Descrição | -| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `format` | [link](#default-prompt-format) | Configura o formato do prompt. | -| `right_format` | `''` | Veja [Ativa o prompt direito](/advanced-config/#enable-right-prompt) | -| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). | -| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (em milissegundos). | -| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. | -| `palette` | `''` | Define qual a paleta de cores de `palettes` será usada. | -| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. | +| Opções | Padrão | Descrição | +| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `format` | [link](#default-prompt-format) | Configura o formato do prompt. | +| `right_format` | `''` | Veja [Ativa o prompt direito](/advanced-config/#enable-right-prompt) | +| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). | +| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (em milissegundos). | +| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. | +| `palette` | `''` | Define qual a paleta de cores de `palettes` será usada. | +| `palettes` | `{}` | Coleção de paletas de cores que atribuem [cores](/advanced-config/#style-strings) aos nomes definidos pelo usuário. Note que paletas de cores não podem referir-se a suas próprias definições de cores. | ### Exemplo @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' O módulo `directory` exibe o caminho do diretório atual, truncando as três pastas pai. Seu diretório será truncando na raiz do repositório git que você estiver atualmente. -Quando usar a opção de estilo fish pwd, ao invés de esconder o caminho que é truncado, você vai ver um nome encurtado de cada diretório baseado no número que você habilitar para a opção. +Ao usar a opção `fish_style_pwd_dir_length`, em vez de esconder o caminho que é truncado, você verá um nome encurtado de cada diretório com base no número que você habilitar para a opção. Por exemplo, dado `~/Dev/Nix/nixpkgs/pkgs` onde `nixpkgs` é o repositório raiz e a opção esta definida para `1`. Você verá `~/D/N/nixpkgs/pkgs`, enquanto antes seria `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Opções -| Opções | Padrão | Descrição | -| ----------- | ---------------------------- | ----------------------------------------------------------------- | -| `threshold` | `2` | Limite de exibição. | -| `format` | `'[$symbol$shlvl]($style) '` | O formato do módulo. | -| `symbol` | `'↕️ '` | O simbolo usado para representar o `SHLVL`. | -| `repeat` | `false` | Caso o `symbol` deva se repetir de acordo com o total do `SHLVL`. | -| `style` | `'bold yellow'` | O estilo do módulo. | -| `disabled` | `true` | Desabilita o módulo `shlvl`. | +| Opções | Padrão | Descrição | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Limite de exibição. | +| `format` | `'[$symbol$shlvl]($style) '` | O formato do módulo. | +| `symbol` | `'↕️ '` | O simbolo usado para representar o `SHLVL`. | +| `repeat` | `false` | Caso o `symbol` deva se repetir de acordo com o total do `SHLVL`. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | O estilo do módulo. | +| `disabled` | `true` | Desabilita o módulo `shlvl`. | ### Variáveis @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularidade O módulo `singularity` exibe a imagem atual do [Singularity](https://sylabs.io/singularity/), se dentro de um contêiner e definido `$SINGULARITY_NAME`. @@ -3752,38 +3767,38 @@ Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para ### Opções -| Opções | Padrão | Descrição | -| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `format` | `'[$symbol$status]($style) '` | O formato do módulo | -| `symbol` | `'❌'` | O simbolo exibido no erro de programa | -| `success_symbol` | `''` | O simbolo exibido no sucesso de programa | -| `not_executable_symbol` | `'🚫'` | O simbolo exibido quando o arquivo não é executável | -| `not_found_symbol` | `'🔍'` | O simbolo exibido quando o comando não é encontrado | -| `sigint_symbol` | `'🧱'` | O simbolo exibido no SIGINT (Ctrl + c) | -| `signal_symbol` | `'⚡'` | O simbolo exibido em qualquer sinal | -| `style` | `'bold red'` | O estilo do módulo. | -| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída | -| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída | -| `pipestatus` | `false` | Habilita o relatório de pipestatus | -| `pipestatus_separator` | | | The symbol used to separate pipestatus segments (supports formatting) | -| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | O formato do módulo quando o comando é um pipeline | -| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments | -| `disabled` | `true` | Desabilita o módulo `status`. | +| Opções | Padrão | Descrição | +| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `format` | `'[$symbol$status]($style) '` | O formato do módulo | +| `symbol` | `'❌'` | O simbolo exibido no erro de programa | +| `success_symbol` | `''` | O simbolo exibido no sucesso de programa | +| `not_executable_symbol` | `'🚫'` | O simbolo exibido quando o arquivo não é executável | +| `not_found_symbol` | `'🔍'` | O simbolo exibido quando o comando não é encontrado | +| `sigint_symbol` | `'🧱'` | O simbolo exibido no SIGINT (Ctrl + c) | +| `signal_symbol` | `'⚡'` | O simbolo exibido em qualquer sinal | +| `style` | `'bold red'` | O estilo do módulo. | +| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída | +| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída | +| `pipestatus` | `false` | Habilita o relatório de pipestatus | +| `pipestatus_separator` | | | O símbolo usado para separar segmentos de pipestatus (suporta formatação) | +| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | O formato do módulo quando o comando é um pipeline | +| `pipestatus_segment_format` | | Quando especificado, substitui o `format` quando ha formatação de segmentos pipestatus | +| `disabled` | `true` | Desabilita o módulo `status`. | ### Variáveis -| Variável | Exemplo | Descrição | -| -------------- | ------- | ------------------------------------------------------------------------------------------ | -| status | `127` | O codígo de saída do último comando | -| hex_status | `0x7F` | O codígo de saída do último comando em hex | -| int | `127` | O codígo de saída do último comando | -| common_meaning | `ERROR` | Significa que o código não é um sinal | -| signal_number | `9` | Número do sinal correspondente ao código de saída, apenas se sinalizado | -| signal_name | `KILL` | Nome do sinal correspondente ao código de saída, apenas se for sinalizado | -| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado | -| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format | -| symbol | | Espelha o valor da opção `symbol` | -| style\* | | Espelha o valor da opção `style` | +| Variável | Exemplo | Descrição | +| -------------- | ------- | -------------------------------------------------------------------------------------------------------- | +| status | `127` | O codígo de saída do último comando | +| hex_status | `0x7F` | O codígo de saída do último comando em hex | +| int | `127` | O codígo de saída do último comando | +| common_meaning | `ERROR` | Significa que o código não é um sinal | +| signal_number | `9` | Número do sinal correspondente ao código de saída, apenas se sinalizado | +| signal_name | `KILL` | Nome do sinal correspondente ao código de saída, apenas se for sinalizado | +| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado | +| pipestatus | | Exibição do pipeline de programas com os códigos de saída, este é apenas disponível no pipestatus_format | +| symbol | | Espelha o valor da opção `symbol` | +| style\* | | Espelha o valor da opção `style` | *: Esta variável só pode ser usada como parte de uma string de estilo @@ -4227,7 +4242,7 @@ Strings de formatação também podem conter sequencias de prompt especificas de | ------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `command` | `''` | O comando cuja a saída deve ser exibida. O comando será passado no stdin para o shell. | | `when` | `false` | Ou um valor booleano (`true` ou `false`, sem aspas) ou um comando shell de string usado como condição para mostrar o módulo. No caso de uma string, o módulo será mostrado se o comando retornar um código de status `0`. | -| `require_repo` | `false` | If `true`, the module will only be shown in paths containing a (git) repository. This option alone is not sufficient display condition in absence of other options. | +| `require_repo` | `false` | Se `true`, o módulo será exibido apenas em caminhos que contenham um repositório (git). Esta opção, por si só, não é uma condição de exibição suficiente na ausência de outras opções. | | `shell` | | [Veja abaixo](#custom-command-shell) | | `description` | `''` | A descrição do módulo, isto será exibido quando executar `starship explain`. | | `detect_files` | `[]` | Os arquivos que serão buscados por correspondência no diretório atual. | diff --git a/docs/pt-BR/guide/README.md b/docs/pt-BR/guide/README.md index 29b854ce..67d28420 100644 --- a/docs/pt-BR/guide/README.md +++ b/docs/pt-BR/guide/README.md @@ -223,9 +223,8 @@ Ou instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes: | **_Qualquer_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Qualquer_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Qualquer_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Qualquer_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Nota: Somente o Nushell v0.73+ é suportado +Nota: Somente o Nushell v0.78+ é suportado diff --git a/docs/pt-PT/README.md b/docs/pt-PT/README.md index f222b780..b0e7e377 100644 --- a/docs/pt-PT/README.md +++ b/docs/pt-PT/README.md @@ -149,7 +149,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Add the following to the end of `~/.xonshrc`: diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md index d5aa335e..396fbb2c 100644 --- a/docs/pt-PT/config/README.md +++ b/docs/pt-PT/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/pt-PT/guide/README.md b/docs/pt-PT/guide/README.md index 2a6b76d5..0289a807 100644 --- a/docs/pt-PT/guide/README.md +++ b/docs/pt-PT/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/ru-RU/README.md b/docs/ru-RU/README.md index c8ca9016..9439e767 100644 --- a/docs/ru-RU/README.md +++ b/docs/ru-RU/README.md @@ -149,7 +149,7 @@ description: Starship - минимальная, быстрая и бесконе ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship - минимальная, быстрая и бесконе And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Добавьте следующее в конец `~/.xonshrc`: diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md index 07d36e36..1ce293ee 100644 --- a/docs/ru-RU/config/README.md +++ b/docs/ru-RU/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' Модуль `directory` показывает путь к вашей текущей директории, усеченной до трех родительских папок. Ваш каталог также будет отсечен до корня git репозитория, в котором вы находитесь. -При использовании стиля оболочки fish, вместо скрытия усеченного каталога, вы увидите укороченное имя каталога, зависимое от числа символов вы установите для этой опции. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. Например, возьмем `~/Dev/Nix/nixpkgs/pkgs` где `nixpkgs` является корневым репозиторием, и в опции установлено `1`. Вы увидите `~/D/N/nixpkgs/pkgs`, а до этого было бы `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Опции -| Параметр | По умолчанию | Описание | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | Формат модуля. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | Стиль модуля. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Параметр | По умолчанию | Описание | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | Формат модуля. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | Стиль модуля. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Переменные @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md index 4fe61d3d..e992d3a4 100644 --- a/docs/ru-RU/guide/README.md +++ b/docs/ru-RU/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported diff --git a/docs/tr-TR/README.md b/docs/tr-TR/README.md index 4740b82a..bb5441a2 100644 --- a/docs/tr-TR/README.md +++ b/docs/tr-TR/README.md @@ -149,7 +149,7 @@ description: Starship, her prompt için minimal, son derece hızlı ve son derec ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship, her prompt için minimal, son derece hızlı ve son derec Aşağıdaki kodu Nushell ayarlarınızın (`$nu.config-path` komutu ile ulaşabilirsiniz) sonuna ekleyin: ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh `~/.xonshrc` dosyasının sonuna ekleyin: diff --git a/docs/tr-TR/config/README.md b/docs/tr-TR/config/README.md index 029ceec8..9ac9e840 100644 --- a/docs/tr-TR/config/README.md +++ b/docs/tr-TR/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Options -| Option | Default | Description | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `stil` | `'bold yellow'` | The style for the module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | Default | Description | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `stil` | `'bold yellow'` | The style for the module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/tr-TR/guide/README.md b/docs/tr-TR/guide/README.md index 4e561aba..a333bb59 100644 --- a/docs/tr-TR/guide/README.md +++ b/docs/tr-TR/guide/README.md @@ -223,9 +223,8 @@ Alternatif olarak aşağıdaki paket yöneticileri ile de Starship'i yükleyebil | **_Herhangi bir dağıtım_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Herhangi bir dağıtım_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Herhangi bir dağıtım_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Herhangi bir dağıtım_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Aşağıdaki kodu Nushell ayarlarınızın (`$nu.config-path` komutu ile ulaşabilirsiniz) sonuna ekleyin: ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Not: Nushell v0.73'tan sonraki sürümler desteklenmektedir +Not: Nushell v0.78'tan sonraki sürümler desteklenmektedir diff --git a/docs/uk-UA/README.md b/docs/uk-UA/README.md index b5b1baf1..a2233193 100644 --- a/docs/uk-UA/README.md +++ b/docs/uk-UA/README.md @@ -149,7 +149,7 @@ description: Простий, супер швидкий та безмежно а ::: warning - Це зміниться в майбутньому. Підтримується лише Nushell v0.73+. + Це зміниться в майбутньому. Підтримується лише Nushell v0.78+. ::: @@ -162,9 +162,10 @@ description: Простий, супер швидкий та безмежно а Додайте наступний рядок наприкінці Вашої конфігурації Nushell (знайдіть її виконавши `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Додайте наступний рядок наприкінці `~/.xonshrc`: diff --git a/docs/uk-UA/config/README.md b/docs/uk-UA/config/README.md index 415b2715..c41de035 100644 --- a/docs/uk-UA/config/README.md +++ b/docs/uk-UA/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' Модуль `directory` показує шлях до поточної теки, урізаючи його до трьох останніх батьківських тек. Шлях до теки також буде скорочений до кореня git-репозиторію, якому ви перебуваєте. -Якщо використовується параметр pwd у стилі fish, замість того, щоб приховувати скорочений шлях, ви побачите скорочену назву кожної теки в залежності від числа, яке ви вказали для цього параметра. +Якщо використовується параметр `fish_style_pwd_dir_length`, замість того, щоб приховувати скорочений шлях, ви побачите скорочену назву кожної теки в залежності від числа, яке ви вказали для цього параметра. Наприклад, маємо `~/Dev/Nix/nixpkgs/pkgs` де `nixpkgs` є коренем репозиторію, а параметр — `1`. Ви побачите `~/D/N/nixpkgs/pkgs`, тоді як до цього було `nixpkgs/pkg`. @@ -3607,14 +3607,15 @@ disabled = false ### Параметри -| Параметр | Стандартно | Опис | -| ----------- | ---------------------------- | ----------------------------------------------------------- | -| `threshold` | `2` | Граничне значення для показу. | -| `format` | `'[$symbol$shlvl]($style) '` | Формат модуля. | -| `symbol` | `'↕️ '` | Символ, який використовується для показу `SHLVL`. | -| `repeat` | `false` | Повторно показує `symbol` в кількості зазначеній у `SHLVL`. | -| `style` | `'bold yellow'` | Стиль модуля. | -| `disabled` | `true` | Вимикає модуль `shlvl`. | +| Параметр | Стандартно | Опис | +| --------------- | ---------------------------- | ---------------------------------------------------------------------------------- | +| `threshold` | `2` | Граничне значення для показу. | +| `format` | `'[$symbol$shlvl]($style) '` | Формат модуля. | +| `symbol` | `'↕️ '` | Символ, який використовується для показу `SHLVL`. | +| `repeat` | `false` | Повторно показує `symbol` в кількості зазначеній у `SHLVL`. | +| `repeat_offset` | `0` | Зменшує кількість разів, коли `symbol` повторюється використовуючи значення offset | +| `style` | `'bold yellow'` | Стиль модуля. | +| `disabled` | `true` | Вимикає модуль `shlvl`. | ### Змінні @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Використовуючи `repeat` та `repeat_offset` разом з модулем `character`, ви можете отримати рядок виду `❯❯❯`, де останній символ має колір відповідно до статусу виконання останньої команди, а символи, що йому передують зазначаються у `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity Модуль `singularity` показує поточний образ [Singularity](https://sylabs.io/singularity/), якщо ви всередині контейнера і `$SINGULARITY_NAME` встановлено. diff --git a/docs/uk-UA/guide/README.md b/docs/uk-UA/guide/README.md index 273be3ee..d93495bb 100644 --- a/docs/uk-UA/guide/README.md +++ b/docs/uk-UA/guide/README.md @@ -223,9 +223,8 @@ curl -sS https://starship.rs/install.sh | sh | **_Будь-який_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Будь-який_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Будь-який_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Будь-який_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu Додайте наступний рядок наприкінці налаштувань Nushell (знайдіть її за допомоги `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Примітка: Підтримується лише Nushell v0.73+ +Примітка: Підтримується лише Nushell v0.78+ diff --git a/docs/vi-VN/README.md b/docs/vi-VN/README.md index 4222ec04..f0b2c9fb 100644 --- a/docs/vi-VN/README.md +++ b/docs/vi-VN/README.md @@ -149,22 +149,23 @@ description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biế ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: - Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): + Thêm đoạn code dưới đây vào cuối file Nushell env của bạn (Bạn có thể tìm đường dẫn tới file Nushell env bằng cách chạy `$nu.env-path` trong Nushell): ```sh mkdir ~/.cache/starship starship init nu | save -f ~/.cache/starship/init.nu ``` - And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): + Thêm đoạn code sau vào cuối file cấu hình Nushell (bạn có thể tìm đường dẫn tới file cấu hình Nushell bằng cách chạy câu lệnh `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh Thêm dòng này vào cuối của file `~/.xonshrc`: @@ -178,7 +179,7 @@ description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biế #### Cmd - You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory: + Bạn cần phải dùng [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) với Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory: ```lua -- starship.lua diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md index e69fbc4c..e38d4c4e 100644 --- a/docs/vi-VN/config/README.md +++ b/docs/vi-VN/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' `directory` module hiển thị đường dẫn thư mục hiện hành của bạn,, cắt ngắn ba thư mục cha. Đường dẫn của bạn cũng sẽ được cắt ngắn tới đường dẫn gốc của git repo hiện tại của bạn. -Khi sử dụng fish style pwd option, thay vì ẩn đường dẫn được rút gọn, bạn sẽ thấy một tên ngắn cho mỗi thư mục dựa trên số bạn cho phép trng tùy chọn. +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. Cho ví dụ, `~/Dev/Nix/nixpkgs/pkgs` nơi `nixpkgs` là gốc của repo, và tuỳ chọn thiết lập sang `1`. Bây giờ bạn sẽ thấy `~/D/N/nixpkgs/pkgs`, trong khi trước nó là `nixpkgs/pkgs`. @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### Các tuỳ chọn -| Tuỳ chọn | Mặc định | Mô tả | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | Định dạng cho module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | Kiểu cho module. | -| `disabled` | `true` | Disables the `shlvl` module. | +| Tuỳ chọn | Mặc định | Mô tả | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | Định dạng cho module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | Kiểu cho module. | +| `disabled` | `true` | Disables the `shlvl` module. | ### Các biến @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/vi-VN/guide/README.md b/docs/vi-VN/guide/README.md index 1a280a15..0900d31b 100644 --- a/docs/vi-VN/guide/README.md +++ b/docs/vi-VN/guide/README.md @@ -177,16 +177,16 @@ ### Yêu cầu -- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (for example, try the [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)). +- Bạn phải có [Nerd Font](https://www.nerdfonts.com/) được cài đặt và kích hoạt trên terminal (ví dụ, bạn có thể thử [FiraCode NerdFont](https://www.nerdfonts.com/font-downloads)). -### Step 1. Install Starship +### Bước 1. Cài Đặt Starship -Select your operating system from the list below to view installation instructions: +Chọn hệ điều hành của bạn trong danh sách bên dưới để xem hướng dẫn cài đặt:
Android -Install Starship using any of the following package managers: +Cài đặt Starship bằng một package manager bất kì: | Repository | Instructions | | --------------------------------------------------------------------------------- | ---------------------- | @@ -197,7 +197,7 @@ Install Starship using any of the following package managers:
BSD -Install Starship using any of the following package managers: +Cài đặt Starship bằng một package manager bất kì: | Distribution | Repository | Instructions | | ------------ | -------------------------------------------------------- | --------------------------------- | @@ -210,22 +210,21 @@ Install Starship using any of the following package managers:
Linux -Install the latest version for your system: +Cài đặt phiên bản mới nhất cho hệ điều hành của bạn: ```sh curl -sS https://starship.rs/install.sh | sh ``` -Alternatively, install Starship using any of the following package managers: +Hoặc là, cài đặt Starship bằng một package manager bất kì: | Distribution | Repository | Instructions | | ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -237,13 +236,13 @@ Alternatively, install Starship using any of the following package managers:
macOS -Install the latest version for your system: +Cài phiên bản mới nhất cho hệ điều hành của bạn: ```sh curl -sS https://starship.rs/install.sh | sh ``` -Alternatively, install Starship using any of the following package managers: +Hoặc là, cài đặt Starship bằng một package manager bất kì: | Repository | Instructions | | -------------------------------------------------------- | --------------------------------------- | @@ -257,9 +256,9 @@ Alternatively, install Starship using any of the following package managers:
Windows -Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest). +Cài đặt phiên bản mới nhất cho hệ điều hành của bạn với MSI-installers từ [phần release](https://github.com/starship/starship/releases/latest). -Install Starship using any of the following package managers: +Cài đặt Starship bằng một package manager bất kì: | Repository | Instructions | | -------------------------------------------------------------------------------------------- | --------------------------------------- | @@ -271,9 +270,9 @@ Install Starship using any of the following package managers:
-### Step 2. Set up your shell to use Starship +### Bước 2. Thiết lập shell của bạn để dùng Starship -Configure your shell to initialize starship. Select yours from the list below: +Cấu hình shell của bạn để chạy starship. Bạn có thể chọn từ danh sách bên dưới:
Bash @@ -289,7 +288,7 @@ eval "$(starship init bash)"
Cmd -You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents: +Bạn cần phải dùng [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) với Cmd. Tạo một file như đường dẫn `%LocalAppData%/clink/starship.lua` với nội dung như sau: ```lua load(io.popen('starship init cmd'):read("*a"))() @@ -306,7 +305,7 @@ Thêm đoạn sau vào cuối tệp tin `~/.elvish/rc.elv`: eval (starship init elvish) ``` -Note: Only Elvish v0.18+ is supported +Lưu ý: Chỉ hỗ trợ Elvish v0.18+
@@ -335,27 +334,27 @@ eval $(starship init ion)
Nushell -Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): +Thêm đoạn code dưới đây vào cuối file Nushell env của bạn (Bạn có thể tìm đường dẫn tới file Nushell env bằng cách chạy `$nu.env-path` trong Nushell): ```sh mkdir ~/.cache/starship starship init nu | save -f ~/.cache/starship/init.nu ``` -And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): +Thêm đoạn code sau vào cuối file cấu hình Nushell (bạn có thể tìm đường dẫn tới file cấu hình Nushell bằng cách chạy câu lệnh `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Lưu ý: Chỉ hỗ trợ Nushell v0.78+
PowerShell -Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`): +Thêm đoạn code sau vào cuối file cấu hình PowerShell (bạn có thể tìm đường dẫn tới file cấu hình PowerShell bằng cách chạy câu lệnh `$PROFILE`): ```powershell Invoke-Expression (&starship init powershell) @@ -396,15 +395,15 @@ eval "$(starship init zsh)"
-### Step 3. Configure Starship +### Bước 3. Cấu hình Starship -Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy! +Khởi tạo một shell mới, và bạn sẽ thấy một chiếc shell mới tinh, đẹp lung linh. Nếu bạn hài lòng với cấu hình mặc định thì giờ là lúc mà bạn nên tận hưởng chiếc shell mới của mình! -If you're looking to further customize Starship: +Nếu bạn muốn tùy chỉnh Starship nhiều hơn nữa: -- **[Configuration](https://starship.rs/config/)** – learn how to configure Starship to tweak your prompt to your liking +- **[Cấu hình](https://starship.rs/config/)** – học cách cấu hình Starship để tùy chỉnh prompt theo ý bạn -- **[Presets](https://starship.rs/presets/)** – get inspired by the pre-built configuration of others +- **[Cấu hình mẫu](https://starship.rs/presets/)** – lấy cảm hứng từ cấu hình của những người khác ## 🤝 Đóng góp @@ -424,11 +423,11 @@ Xin hãy xem qua những công việc này trước đây, những thứ đã gi - **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons. -## ❤️ Sponsors +## Tài trợ -Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website. +Hỗ trợ project này bằng việc [trở thành nhà tài trợ](https://github.com/sponsors/starship). Tên hoặc logo của nhà tài trợ sẽ được hiển thị với một liên kết dẫn tới trang web của họ. -**Supporter Tier** +**Nhà tài trợ ủng hộ** - [Appwrite](https://appwrite.io/) diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md index f4b53e80..90ac6fea 100644 --- a/docs/zh-CN/README.md +++ b/docs/zh-CN/README.md @@ -149,7 +149,7 @@ description: Starship是一款轻量级、反应迅速、可自定义的高颜 ::: warning - 这部分今后可能会改变。 仅支持 Nushell v0.73+。 + 这部分今后可能会改变。 仅支持 Nushell v0.78+。 ::: @@ -162,9 +162,10 @@ description: Starship是一款轻量级、反应迅速、可自定义的高颜 然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容: ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh 在 `~/.xonshrc` 的最后,添加以下内容: diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md index 0927b221..9807ad5d 100644 --- a/docs/zh-CN/config/README.md +++ b/docs/zh-CN/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' `directory` 组件显示当前目录的路径,显示的路径会截断到三个父目录以内。 如果您处于一个 git 仓库中,显示的路径则最多会截断到该仓库的根目录。 -当使用 fish 风格的当前目录显示样式时,您会看到基于您的设置的每个上级目录的短名称,而不是隐藏被截断的上级目录。 +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. 例如,对于 `~/Dev/Nix/nixpkgs/pkgs`,其中 `nixpkgs` 是 git 仓库根目录,fish 风格相关选项设置为 `1`。 您将会看到 `~/D/N/nixpkgs/pkgs`,而在设置 fish 风格之前,当前路径将显示成 `nixpkgs/pkgs`。 @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### 配置项 -| 选项 | 默认值 | 描述 | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | 组件格式化模板。 | -| `符号` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | 此组件的样式。 | -| `disabled` | `true` | Disables the `shlvl` module. | +| 选项 | 默认值 | 描述 | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | 组件格式化模板。 | +| `符号` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | 此组件的样式。 | +| `disabled` | `true` | Disables the `shlvl` module. | ### 变量 @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md index f24cd92e..eeeeebc3 100644 --- a/docs/zh-CN/guide/README.md +++ b/docs/zh-CN/guide/README.md @@ -223,9 +223,8 @@ curl -sS https://starship.rs/install.sh | sh | **_任意发行版_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _任意发行版_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _任意发行版_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _任意发行版_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu 然后将以下内容添加到您 Nushell 配置文件的末尾(使用 `$nu.config-path` 来获取它的路径): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -注意:仅支持 Nushell v0.73+ +注意:仅支持 Nushell v0.78+
diff --git a/docs/zh-TW/README.md b/docs/zh-TW/README.md index aec45db3..4b57ac59 100644 --- a/docs/zh-TW/README.md +++ b/docs/zh-TW/README.md @@ -149,7 +149,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化 ::: warning - This will change in the future. Only Nushell v0.73+ is supported. + This will change in the future. Only Nushell v0.78+ is supported. ::: @@ -162,9 +162,10 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化 And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh - source ~/.cache/starship/init.nu + use ~/.cache/starship/init.nu ``` + #### Xonsh 將以下內容加到 `~/.xonshrc` 的結尾: diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md index 58754b98..6626d765 100644 --- a/docs/zh-TW/config/README.md +++ b/docs/zh-TW/config/README.md @@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) ' `directory` 模組顯示到現在資料夾的路徑,並裁減到前三層資料夾。 你的資料夾也會被裁減到你所在的 git 儲存庫的根目錄。 -如果正在使用 fish 風格的 pwd 選項,將不會隱藏被裁減的資料夾,而是會根據你在選項中設定的數字看到每一層資料夾的縮寫。 +When using the `fish_style_pwd_dir_length` option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. 例如,給定一個右列的路徑 `~/Dev/Nix/nixpkgs/pkgs` 其中 `nixpkgs` 是儲存庫的根目錄,而且該選項被設定為 `1`。 你會看到 `~/D/N/nixpkgs/pkgs`,而在這個設定之前則是 `nixpkgs/pkgs`。 @@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int ### 選項 -| Option | 預設 | 說明 | -| ----------- | ---------------------------- | ------------------------------------------------------------- | -| `threshold` | `2` | Display threshold. | -| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | -| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | -| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | -| `style` | `'bold yellow'` | 這個模組的風格。 | -| `disabled` | `true` | Disables the `shlvl` module. | +| Option | 預設 | 說明 | +| --------------- | ---------------------------- | ------------------------------------------------------------------- | +| `threshold` | `2` | Display threshold. | +| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. | +| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. | +| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. | +| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value | +| `style` | `'bold yellow'` | 這個模組的風格。 | +| `disabled` | `true` | Disables the `shlvl` module. | ### Variables @@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down' threshold = 3 ``` +Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`. + +```toml +# ~/.config/starship.toml + +[shlvl] +disabled = false +format = '[$symbol$shlvl]($style)' +repeat = true +symbol = '❯' +repeat_offset = 1 +threshold = 0 +``` + ## Singularity The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set. diff --git a/docs/zh-TW/guide/README.md b/docs/zh-TW/guide/README.md index 78bd6785..c93a1f46 100644 --- a/docs/zh-TW/guide/README.md +++ b/docs/zh-TW/guide/README.md @@ -223,9 +223,8 @@ Alternatively, install Starship using any of the following package managers: | **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | | _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | -| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | -| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship`
`dnf install starship` | | Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | | Manjaro | | `pacman -S starship` | @@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): ```sh -source ~/.cache/starship/init.nu +use ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.73+ is supported +Note: Only Nushell v0.78+ is supported