docs(i18n): new Crowdin updates (#4487)

This commit is contained in:
Matan Kushner
2022-12-05 15:54:12 +09:00
committed by GitHub
parent 37b13ca260
commit 70c05d49bd
148 changed files with 20671 additions and 14064 deletions
+20 -9
View File
@@ -36,6 +36,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
1. Install the **starship** binary:
#### Install Latest Version
With Shell:
@@ -46,6 +47,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
#### Install via Package Manager
With [Homebrew](https://brew.sh/):
@@ -61,9 +63,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
1. Add the init script to your shell's config file:
#### Bash
Add the following to the end of `~/.bashrc`:
Додайте наступний рядок наприкінці `~/.bashrc`:
```sh
# ~/.bashrc
@@ -71,9 +74,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval "$(starship init bash)"
```
#### Fish
Add the following to the end of `~/.config/fish/config.fish`:
Додайте наступний рядок наприкінці `~/.config/fish/config.fish`:
```sh
# ~/.config/fish/config.fish
@@ -81,9 +85,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
starship init fish | source
```
#### Zsh
Add the following to the end of `~/.zshrc`:
Додайте наступний рядок наприкінці `~/.zshrc`:
```sh
# ~/.zshrc
@@ -91,6 +96,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval "$(starship init zsh)"
```
#### Powershell
Add the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the `$PROFILE` variable in PowerShell. Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
@@ -99,9 +105,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
Invoke-Expression (&starship init powershell)
```
#### Ion
Add the following to the end of `~/.config/ion/initrc`:
Додайте наступний рядок наприкінці `~/.config/ion/initrc`:
```sh
# ~/.config/ion/initrc
@@ -109,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
#### Elvish
::: warning
@@ -117,7 +125,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
:::
Add the following to the end of `~/.elvish/rc.elv`:
Додайте наступний рядок наприкінці `~/.elvish/rc.elv`:
```sh
# ~/.elvish/rc.elv
@@ -125,9 +133,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval (starship init elvish)
```
#### Tcsh
Add the following to the end of `~/.tcshrc`:
Додайте наступний рядок наприкінці `~/.tcshrc`:
```sh
# ~/.tcshrc
@@ -135,6 +144,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
#### Nushell
::: warning
@@ -149,7 +159,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
starship init nu | save ~/.cache/starship/init.nu
```
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
Додайте наступний рядок наприкінці Вашої конфігурації Nushell (знайдіть її виконавши `$nu.config-path`):
```sh
source ~/.cache/starship/init.nu
@@ -157,7 +167,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Xonsh
Add the following to the end of `~/.xonshrc`:
Додайте наступний рядок наприкінці `~/.xonshrc`:
```sh
# ~/.xonshrc
@@ -165,9 +175,10 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
execx($(starship init xonsh))
```
#### 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:
Вам потрібно використовувати [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) разом з Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
```lua
-- starship.lua
+4 -2
View File
@@ -205,7 +205,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd.
`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
Note: Nushell 0.71.0 or later is required
### Example
@@ -280,5 +282,5 @@ If multiple colors are specified for foreground/background, the last one in the
Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
- Many terminals disable support for `blink` by default
- `hidden` is not supported on iTerm (https://gitlab.com/gnachman/iterm2/-/issues/4564).
- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
- `strikethrough` is not supported by the default macOS Terminal.app
+1243 -982
View File
File diff suppressed because it is too large Load Diff
+41 -34
View File
@@ -165,15 +165,15 @@
<a name="🚀-installation"></a>
## 🚀 Встановлення
## 🚀 Установлення
### Передумови
- Встановлений та ввімкнений набір шрифтів та термінальних іконок [Nerd Font](https://www.nerdfonts.com/) (як от [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
- Установлений та ввімкнений у Вашому терміналі набір шрифтів [Nerd Font](https://www.nerdfonts.com/) (для прикладу, спробуйте [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
### Крок 1. Встановіть Starship
### Крок 1. Установіть starship
Виберіть вашу операційну систему зі списку нижче, щоб переглянути інструкцію з установки:
Виберіть Вашу операційну систему зі списку нижче, щоб переглянути інструкцію з установки:
<details>
<summary>Android</summary>
@@ -210,20 +210,19 @@ curl -sS https://starship.rs/install.sh | sh
Як варіант, можете встановити Starship через будь-який з наступних пакетних менеджерів:
| Дистрибутив | Репозиторій | Командна інструкція |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| **_Будь-який_** | **[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 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` |
| Дистрибутив | Репозиторій | Командна інструкція |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **_Будь-який_** | **[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 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` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
| Fedora 31+ | [Fedora Packages](https://src.fedoraproject.org/rpms/rust-starship) | `dnf install starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
</details>
@@ -264,14 +263,14 @@ curl -sS https://starship.rs/install.sh | sh
</details>
### Крок 2. Налаштування вашої оболонки для використання Starship
### Крок 2. Налаштуйте Вашу оболонку для використання starship
Налаштуйте свою оболонку, щоб ініціалізувати starship. Виберіть ваш варіант зі списку:
<details>
<summary>Bash</summary>
Add the following to the end of `~/.bashrc`:
Додайте наступний рядок наприкінці `~/.bashrc`:
```sh
eval "$(starship init bash)"
@@ -282,7 +281,7 @@ eval "$(starship init bash)"
<details>
<summary>Cmd</summary>
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:
Вам потрібно використовувати [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) разом з Cmd. Створіть файл за шляхом `%LocalAppData%\clink\starship.lua` із наступним вмістом:
```lua
load(io.popen('starship init cmd'):read("*a"))()
@@ -293,20 +292,20 @@ load(io.popen('starship init cmd'):read("*a"))()
<details>
<summary>Elvish</summary>
Add the following to the end of `~/.elvish/rc.elv`:
Додайте наступний рядок наприкінці `~/.elvish/rc.elv`:
```sh
eval (starship init elvish)
```
Note: Only Elvish v0.18+ is supported
Примітка: Підтримується лише Elvish v0.18+
</details>
<details>
<summary>Fish</summary>
Add the following to the end of `~/.config/fish/config.fish`:
Додайте наступний рядок наприкінці `~/.config/fish/config.fish`:
```fish
starship init fish | source
@@ -317,7 +316,7 @@ starship init fish | source
<details>
<summary>Ion</summary>
Add the following to the end of `~/.config/ion/initrc`:
Додайте наступний рядок наприкінці `~/.config/ion/initrc`:
```sh
eval $(starship init ion)
@@ -335,20 +334,20 @@ mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
```
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
Додайте наступний рядок наприкінці Вашої конфігурації Nushell (знайдіть її виконавши `$nu.config-path`):
```sh
source ~/.cache/starship/init.nu
```
Note: Only Nushell v0.61+ is supported
Примітка: Підтримується лише Nushell v0.61+
</details>
<details>
<summary>PowerShell</summary>
Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`):
Додайте наступний рядок наприкінці Вашої конфігурації PowerShell (знайдіть її виконавши `$PROFILE`):
```powershell
Invoke-Expression (&starship init powershell)
@@ -359,7 +358,7 @@ Invoke-Expression (&starship init powershell)
<details>
<summary>Tcsh</summary>
Add the following to the end of `~/.tcshrc`:
Додайте наступний рядок наприкінці `~/.tcshrc`:
```sh
eval `starship init tcsh`
@@ -370,7 +369,7 @@ eval `starship init tcsh`
<details>
<summary>Xonsh</summary>
Add the following to the end of `~/.xonshrc`:
Додайте наступний рядок наприкінці `~/.xonshrc`:
```python
execx($(starship init xonsh))
@@ -381,7 +380,7 @@ execx($(starship init xonsh))
<details>
<summary>Zsh</summary>
Add the following to the end of `~/.zshrc`:
Додайте наступний рядок наприкінці `~/.zshrc`:
```sh
eval "$(starship init zsh)"
@@ -389,7 +388,7 @@ eval "$(starship init zsh)"
</details>
### Крок 3. Configure Starship
### Крок 3. Налаштуйте starship
Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy!
@@ -409,19 +408,27 @@ If you are interested in helping contribute to starship, please take a look at o
## 💭 Inspired By
Please check out these previous works that helped inspire the creation of starship. 🙏
Будь ласка, перегляньте ці попередні роботи, які надихнули на створення starship. 🙏
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** A ZSH prompt for astronauts.
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** Командний рядок ZSH для астронавтів.
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** Cross-shell robbyrussell theme written in JavaScript.
- **[reujab/silver](https://github.com/reujab/silver)** A cross-shell customizable powerline-like prompt with icons.
## ❤️ Sponsors
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.
**Supporter Tier**
- [Dimension](https://dimension.dev/)
<p align="center">
<br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">
</p>
## 📝 License
## 📝 Ліцензія
Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).<br /> This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) licensed.
+17 -17
View File
@@ -1,21 +1,21 @@
# Advanced Installation
# Розширене встановлення
To install starship, you need to do two things:
Щоб установити starship, Ви мусите зробити дві речі:
1. Get the **starship** binary onto your computer
1. Завантажити бінарний файл **starship** на Ваш комп'ютер
1. Tell your shell to use the starship binary as its prompt by modifying its init scripts
For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed.
Для більшості користувачів чудово підійдуть інструкції на [головній сторінці](/guide/#🚀-installation). Однак, для деяких більш спеціалізованих платформ потрібні інші інструкції.
There are so many platforms out there that they didn't fit into the main README.md file, so here are some installation instructions for other platforms from the community. Is yours not here? Please do add it here if you figure it out!
Існує так багато платформ, що вони не вписуються в основний файл README.md, тож ось деякі інструкції зі встановлення від спільноти для інших платформ. Вашої тут немає? Будь ласка, додайте її сюди, якщо дізнаєтесь!
## [Chocolatey](https://chocolatey.org)
### Передумови
Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
Перейдіть на [сторінку встановлення Chocolatey](https://chocolatey.org/install) та дотримуйтесь інструкцій, щоб установити Chocolatey.
### Installation
### Установлення
```powershell
choco install starship
@@ -29,7 +29,7 @@ choco install starship
pkg install getconf
```
### Installation
### Установлення
```sh
curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.termux/files/usr/bin
@@ -37,9 +37,9 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
## [Funtoo Linux](https://www.funtoo.org/Welcome)
### Installation
### Установлення
On Funtoo Linux, starship can be installed from [core-kit](https://github.com/funtoo/core-kit/tree/1.4-release/app-shells/starship) via Portage:
У Funtoo Linux starship можна встановити з [core-kit](https://github.com/funtoo/core-kit/tree/1.4-release/app-shells/starship) через Portage:
```sh
emerge app-shells/starship
@@ -47,17 +47,17 @@ emerge app-shells/starship
## [Nix](https://nixos.wiki/wiki/Nix)
### Getting the Binary
### Завантаження бінарного файлу
#### Imperatively
#### Імперативно
```sh
nix-env -iA nixos.starship
```
#### Declarative, single user, via [home-manager](https://github.com/nix-community/home-manager)
#### Декларативно, для одного користувача, через [home-manager](https://github.com/nix-community/home-manager)
Enable the `programs.starship` module in your `home.nix` file, and add your settings
Увімкніть модуль `programs.starship` у Вашому файлі `home.nix` та додайте ваші налаштування
```nix
{
@@ -78,15 +78,15 @@ Enable the `programs.starship` module in your `home.nix` file, and add your sett
}
```
then run
потім виконайте
```sh
home-manager switch
```
#### Declarative, system-wide, with NixOS
#### Декларативно, для цілої системи, з NixOS
Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
Додайте `pkgs.starship` до `environment.systemPackages` у Вашій `configuration.nix`, після чого виконайте
```sh
sudo nixos-rebuild switch
+20
View File
@@ -10,6 +10,14 @@ This preset changes the symbols for each module to use Nerd Font symbols.
[![Screenshot of Nerd Font Symbols preset](/presets/img/nerd-font-symbols.png "Click to view Nerd Font Symbols preset")](./nerd-font)
## [No Nerd Fonts](./no-nerd-font.md)
This preset changes the symbols for several modules so that no Nerd Font symbols are used anywhere in the prompt.
::: tip This preset will become the default preset [in a future release of starship](https://github.com/starship/starship/pull/3544). :::
[Click to view No Nerd Font preset](./no-nerd-font)
## [Bracketed Segments](./bracketed-segments.md)
This preset changes the format of all the built-in modules to show their segment in brackets instead of using the default Starship wording ("via", "on", etc.).
@@ -28,6 +36,12 @@ This preset hides the version of language runtimes. If you work in containers or
[![Screenshot of Hide Runtime Versions preset](/presets/img/no-runtime-versions.png "Click to view No Runtime Versions preset")](./no-runtimes)
## [No Empty Icons](./no-empty-icons.md)
This preset does not show icons if the toolset is not found.
[![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png "Click to view No Runtime Versions preset")](./no-empty-icons.md)
## [Pure Prompt](./pure-preset.md)
This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure).
@@ -39,3 +53,9 @@ This preset emulates the look and behavior of [Pure](https://github.com/sindreso
This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json). It also shows how path substitution works in starship.
[![Screenshot of Pastel Powerline preset](/presets/img/pastel-powerline.png "Click to view Pure Prompt preset")](./pastel-powerline)
## [Tokyo Night](./tokyo-night.md)
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+17
View File
@@ -0,0 +1,17 @@
[Return to Presets](./README.md#no-empty-icons)
# No Empty Icons Preset
If toolset files are identified the toolset icon is displayed. If the toolset is not found to determine its version number, it is not displayed. This preset changes the behavior to display the icon only if the toolset information can be determined.
![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png)
### Configuration
```sh
starship preset no-empty-icons > ~/.config/starship.toml
```
[Click to download TOML](/presets/toml/no-empty-icons.toml)
<<< @/.vuepress/public/presets/toml/no-empty-icons.toml
+19
View File
@@ -0,0 +1,19 @@
[Return to Presets](./README.md#no-nerd-fonts)
# No Nerd Fonts Preset
This preset restricts the use of symbols to those from emoji and powerline sets.
This means that even without a Nerd Font installed, you should be able to view all module symbols.
This preset will become the default preset in a future release of starship.
### Configuration
```sh
starship preset no-nerd-font > ~/.config/starship.toml
```
[Click to download TOML](/presets/toml/no-nerd-font.toml)
<<< @/.vuepress/public/presets/toml/no-nerd-font.toml
+21
View File
@@ -0,0 +1,21 @@
[Return to Presets](./README.md#pastel-powerline)
# Tokyo Night Preset
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png)
### Передумови
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
### Configuration
```sh
starship preset tokyo-night > ~/.config/starship.toml
```
[Click to download TOML](/presets/toml/tokyo-night.toml)
<<< @/.vuepress/public/presets/toml/tokyo-night.toml