mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
docs(i18n): new Crowdin updates (#4956)
This commit is contained in:
@@ -24,9 +24,9 @@ success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set
|
||||
disabled = true
|
||||
```
|
||||
|
||||
### Config File Location
|
||||
### Расположение конфигурационного файла
|
||||
|
||||
You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
|
||||
Вы можете задать расположение конфигурационного файла по умолчанию через переменную окружения `STARSHIP_CONFIG`:
|
||||
|
||||
```sh
|
||||
export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
|
||||
@@ -38,7 +38,7 @@ export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
|
||||
$ENV:STARSHIP_CONFIG = "$HOME\example\non\default\path\starship.toml"
|
||||
```
|
||||
|
||||
Or for Cmd (Windows) would be adding this line to your `starship.lua`:
|
||||
Или для Cmd (Windows) добавить следующую строчку в ваш файл `starship.lua`:
|
||||
|
||||
```lua
|
||||
os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\starship.toml')
|
||||
@@ -58,7 +58,7 @@ export STARSHIP_CACHE=~/.starship/cache
|
||||
$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
|
||||
```
|
||||
|
||||
Or for Cmd (Windows) would be adding this line to your `starship.lua`:
|
||||
Или для Cmd (Windows) добавить следующую строчку в ваш файл `starship.lua`:
|
||||
|
||||
```lua
|
||||
os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
|
||||
@@ -66,7 +66,7 @@ os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
|
||||
|
||||
### Терминология
|
||||
|
||||
**Модуль**: Компонент строки, дающий информацию на основе контекстной информации вашей ОС. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
|
||||
**Модуль**: Компонент строки, дающий информацию на основе контекстной информации вашей ОС. Например, модуль "nodejs" отображает установленную версию Node.js, если вы находитесь в директории Node.js проекта.
|
||||
|
||||
**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
|
||||
|
||||
@@ -713,7 +713,7 @@ error_symbol = '[➜](bold red) '
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[character]
|
||||
vicmd_symbol = '[V](bold green) '
|
||||
vimcmd_symbol = '[V](bold green) '
|
||||
```
|
||||
|
||||
## CMake
|
||||
@@ -2871,10 +2871,12 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
|
||||
```toml
|
||||
# This is the default symbols table.
|
||||
[os.symbols]
|
||||
Alpaquita = "🔔 "
|
||||
Alpine = "🏔️ "
|
||||
Amazon = "🙂 "
|
||||
Android = "🤖 "
|
||||
Arch = "🎗️ "
|
||||
Artix = "🎗️ "
|
||||
CentOS = "💠 "
|
||||
Debian = "🌀 "
|
||||
DragonFly = "🐉 "
|
||||
@@ -2887,6 +2889,7 @@ Gentoo = "🗜️ "
|
||||
HardenedBSD = "🛡️ "
|
||||
Illumos = "🐦 "
|
||||
Linux = "🐧 "
|
||||
Mabox = "📦 "
|
||||
Macos = "🍎 "
|
||||
Manjaro = "🥭 "
|
||||
Mariner = "🌊 "
|
||||
@@ -4157,8 +4160,9 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
|
||||
| ------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `command` | `''` | The command whose output should be printed. The command will be passed on stdin to the shell. |
|
||||
| `when` | `false` | Either a boolean value (`true` or `false`, without quotes) or a string shell command used as a condition to show the module. In case of a string, the module will be shown if the command returns a `0` status code. |
|
||||
| `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. |
|
||||
| `shell` | | [See below](#custom-command-shell) |
|
||||
| `описание` | `'<custom module>'` | The description of the module that is shown when running `starship explain`. |
|
||||
| `description` | `'<custom module>'` | The description of the module that is shown when running `starship explain`. |
|
||||
| `detect_files` | `[]` | The files that will be searched in the working directory for a match. |
|
||||
| `detect_folders` | `[]` | The directories that will be searched in the working directory for a match. |
|
||||
| `detect_extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
|
||||
|
||||
Reference in New Issue
Block a user