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

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (Arabic)

* New translations readme.md (Arabic)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (German)

* New translations readme.md (German)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Italian)

* New translations readme.md (Italian)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Korean)

* New translations readme.md (Korean)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Dutch)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Norwegian)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Polish)

* New translations readme.md (Polish)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Portuguese)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Russian)

* New translations readme.md (Russian)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Indonesian)

* New translations readme.md (Indonesian)

* New translations readme.md (Indonesian)

* New translations readme.md (Bengali)

* New translations readme.md (Bengali)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (French)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Arabic)

* New translations readme.md (Arabic)

* New translations readme.md (German)

* New translations readme.md (German)

* New translations readme.md (Italian)

* New translations readme.md (Italian)

* New translations readme.md (Japanese)

* New translations readme.md (Japanese)

* New translations readme.md (Korean)

* New translations readme.md (Dutch)

* New translations readme.md (Dutch)

* New translations readme.md (Norwegian)

* New translations readme.md (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Polish)

* New translations readme.md (Russian)

* New translations readme.md (Russian)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Simplified)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Chinese Traditional)

* New translations readme.md (Vietnamese)

* New translations readme.md (Vietnamese)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Portuguese, Brazilian)

* New translations readme.md (Indonesian)

* New translations readme.md (Indonesian)

* New translations readme.md (French)

* New translations readme.md (Bengali)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Indonesian)

* New translations readme.md (Indonesian)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Spanish)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Ukrainian)

* New translations readme.md (Indonesian)

* New translations readme.md (Dutch)

* New translations readme.md (French)

* 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 (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* 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 (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (Dutch)

* New translations readme.md (French)

* 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 (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* 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 (Bengali)

* New translations readme.md (Sorani (Kurdish))

* New translations readme.md (French)

* New translations readme.md (Ukrainian)

* New translations readme.md (Spanish)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* New translations readme.md (French)

* 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 (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* 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 (Bengali)

* 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 (Norwegian)

* New translations readme.md (Polish)

* New translations readme.md (Portuguese)

* New translations readme.md (Russian)

* New translations readme.md (Turkish)

* New translations readme.md (Ukrainian)

* 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 (French)

* New translations readme.md (Bengali)

* New translations readme.md (Sorani (Kurdish))
This commit is contained in:
Matan Kushner 2024-03-21 20:42:05 +09:00 committed by GitHub
parent e39e731907
commit 2da45e7984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
85 changed files with 1836 additions and 1102 deletions

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: التخصيص البسيط و السريع و الغير محدود لي ال"shell"! tagline: التخصيص البسيط و السريع و الغير محدود لي ال"shell"!
actions: actions:
- theme: brand -
theme: brand
text: البدء مع Starship ← text: البدء مع Starship ←
link: ./guide/ link: ./guide/
features: features:
- -
title: التوافق أولاً title: التوافق أولاً
details: يعمل على أكثر موجهات الأوامر شيوعاً في أكثر نظم التشغيل شيوعاً. استخدمه في كل مكان! details: يعمل على أكثر موجهات الأوامر شيوعاً في أكثر نظم التشغيل شيوعاً. استخدمه في كل مكان!
- -
title: Rust-Powered title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible. details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
- -
title: قابل للتخصيص title: قابل للتخصيص
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be. details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### المتطلبات الأساسية ### المتطلبات الأساسية
@ -58,6 +57,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | الافتراضي | الوصف | | Option | الافتراضي | الوصف |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | الوصف | | Variable | الوصف |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | الافتراضي | الوصف |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | مثال | الوصف |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | مثال | الوصف | | Variable | مثال | الوصف |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | الافتراضي | الوصف | | Option | الافتراضي | الوصف |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### مثال ### مثال
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/ar-SA">الموقع</a> <a href="https://starship.rs">الموقع</a>
· ·
<a href="#🚀-installation">التثبيت</a> <a href="#🚀-installation">التثبيت</a>
· ·
<a href="https://starship.rs/ar-SA/config/">الإعدادات</a> <a href="https://starship.rs/config/">الإعدادات</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Easy:** سريع التثبيت استخدمها في دقائق معدودة. - **Easy:** سريع التثبيت استخدمها في دقائق معدودة.
<p align="center"> <p align="center">
<a href="https://starship.rs/ar-SA/config/"><strong>تصفّح مستندات Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>تصفّح مستندات Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ If you're looking to further customize Starship:
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -5,7 +5,7 @@
1. ثبت ملفات **starship** على جهازك 1. ثبت ملفات **starship** على جهازك
1. تنبيه موجه الأوامر بإن يقوم بجعل سطر الأوامر ل starship وذلك بتعديل كود الإبتداء 1. تنبيه موجه الأوامر بإن يقوم بجعل سطر الأوامر ل starship وذلك بتعديل كود الإبتداء
غالبية المستخدمين [الصفحة الرئيسية ](../guide/#🚀-installation) سوف تلبي احتياجاتهم. لكن، من أجل الاستخدام المتقدم، هناك حاجة لتوجيهات أخرى. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. لكن، من أجل الاستخدام المتقدم، هناك حاجة لتوجيهات أخرى.
هناك العديد من الحالات التي لا تلبي المعلومات في ملف README.md احتياجها ولذلك هذه بعض إرشادات التثبيت الإضافية مقدمة من مجتمع starship. إذا كانت لديك ملاحظة وقمت بحلها ولم تجد هذا الحل لها ضمن الحلول التالية، الرجاء أضفها هنا! هناك العديد من الحالات التي لا تلبي المعلومات في ملف README.md احتياجها ولذلك هذه بعض إرشادات التثبيت الإضافية مقدمة من مجتمع starship. إذا كانت لديك ملاحظة وقمت بحلها ولم تجد هذا الحل لها ضمن الحلول التالية، الرجاء أضفها هنا!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: আপনার টার্মিনাল এর জন্য একটি সহজ, প্রচণ্ড দ্রুত এবং অশেষভাবে কাস্টমাইজ করার মতো সুবিধাসম্পন্ন একটি প্রম্প্ট! tagline: আপনার টার্মিনাল এর জন্য একটি সহজ, প্রচণ্ড দ্রুত এবং অশেষভাবে কাস্টমাইজ করার মতো সুবিধাসম্পন্ন একটি প্রম্প্ট!
actions: actions:
- theme: brand -
theme: brand
text: Get Started → text: Get Started →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibility First title: Compatibility First
details: Works on the most common shells on the most common operating systems. Use it everywhere! details: Works on the most common shells on the most common operating systems. Use it everywhere!
- -
title: Rust-Powered title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible. details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
- -
title: Customizable title: Customizable
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be. details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### পূর্বশর্ত ### পূর্বশর্ত
@ -58,6 +57,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: :::
আপনার Nushell env ফাইলের (Nushell এ `$nu.env-path` কমান্ডটি রান করে ফাইলটি খুঁজে বের করুন) শেষে নিম্নলিখিত লাইনগুলি যোগ করুন: আপনার Nushell env ফাইলের (Nushell এ `$nu.env-path` কমান্ডটি রান করে ফাইলটি খুঁজে বের করুন) শেষে নিম্নলিখিত লাইনগুলি যোগ করুন:
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Description | | Variable | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Example | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Example | Description | | Variable | Example | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Example ### Example
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/bn-BD">ওয়েবসাইট</a> <a href="https://starship.rs">ওয়েবসাইট</a>
· ·
<a href="#🚀-installation">ইন্সটল</a> <a href="#🚀-installation">ইন্সটল</a>
· ·
<a href="https://starship.rs/bn-BD/config/"> কনফিগ</a> <a href="https://starship.rs/config/"> কনফিগ</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **সহজ:** অনায়াসে ইন্সটল করুন মিনিটের মধ্যে ব্যবহার শুরু করে দিন । - **সহজ:** অনায়াসে ইন্সটল করুন মিনিটের মধ্যে ব্যবহার শুরু করে দিন ।
<p align="center"> <p align="center">
<a href="https://starship.rs/bn-BD/config/"><strong>Starship এর ডকুমেন্টেশন ঘুরে দেখুন&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Starship এর ডকুমেন্টেশন ঘুরে দেখুন&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ eval "$(starship init zsh)"
[একজন স্পনসর হয়ে](https://github.com/sponsors/starship) এই প্রোজেক্টটিকে আর্থিক ভাবে সহায়তা করুন । আপনার নাম অথবা লোগো নিম্নে দেখা যাবে আপনার ওয়েবসাইট এর লিঙ্ক সহ । [একজন স্পনসর হয়ে](https://github.com/sponsors/starship) এই প্রোজেক্টটিকে আর্থিক ভাবে সহায়তা করুন । আপনার নাম অথবা লোগো নিম্নে দেখা যাবে আপনার ওয়েবসাইট এর লিঙ্ক সহ ।
**সমর্থক স্তর**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: promptـێکی سوکەڵە، خێرا، و بێسنور دڵخوازکراو بۆ هەر شێڵێک! tagline: promptـێکی سوکەڵە، خێرا، و بێسنور دڵخوازکراو بۆ هەر شێڵێک!
actions: actions:
- theme: brand -
theme: brand
text: دەستپێبکە ← text: دەستپێبکە ←
link: ./guide/ link: ./guide/
features: features:
- -
title: سەرەتا گونجان title: سەرەتا گونجان
details: کاردەکات لەسەر زۆربەی شێڵە باوەکان لەسەر زۆربەی سیستەمە باوەکان. لە هەموو شوێنێک بەکاری بهێنە! details: کاردەکات لەسەر زۆربەی شێڵە باوەکان لەسەر زۆربەی سیستەمە باوەکان. لە هەموو شوێنێک بەکاری بهێنە!
- -
title: Rust لە پشتە title: Rust لە پشتە
details: باشترینی هاوتاکانی لە خێرایی و سەلامەتی Rust بەکارئەهێنێ بۆ ئەوەی promptـەکەت خێراترین و پشت پێبەستراوین بێ. details: باشترینی هاوتاکانی لە خێرایی و سەلامەتی Rust بەکارئەهێنێ بۆ ئەوەی promptـەکەت خێراترین و پشت پێبەستراوین بێ.
- -
title: دڵخوازکراو title: دڵخوازکراو
details: هەموو وردەکارییەکی دڵخواز ئەکرێ بەوجۆرەی حەزت لێیە، بۆ ئەوەی promptـەکە سوکەڵە بێ و پڕ تایبەتمەندی بێت بەوجۆرەی حەزت لێیە ببێ. details: هەموو وردەکارییەکی دڵخواز ئەکرێ بەوجۆرەی حەزت لێیە، بۆ ئەوەی promptـەکە سوکەڵە بێ و پڕ تایبەتمەندی بێت بەوجۆرەی حەزت لێیە ببێ.
footer: لەژێر مۆڵەتی ISCـە | مافی پارێزراوە © 2019-ئێستا بەژداریکەرانی Starship footer: لەژێر مۆڵەتی ISCـە | مافی پارێزراوە © 2019-ئێستا بەژداریکەرانی Starship
@ -24,12 +25,10 @@ metaTitle: "Starship: یەکێ لە Promptـە شێڵ نەناسەکان"
description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و بێسنور دڵخوازکراوەکان بۆ هەر شێڵێک! ئەو زانیارییانە پشان دەدات کە پێویستە، لەوکاتەیا بە ئارامی و سوکەڵەیی ئەمێنێتەوە. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.' description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و بێسنور دڵخوازکراوەکان بۆ هەر شێڵێک! ئەو زانیارییانە پشان دەدات کە پێویستە، لەوکاتەیا بە ئارامی و سوکەڵەیی ئەمێنێتەوە. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.'
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### پێشمەرجەکان ### پێشمەرجەکان
@ -58,6 +57,7 @@ description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و ب
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: 'Starship: یەکێ لە promptـە سوکەڵە، خێرا، و ب
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| گۆڕاو | Description | | گۆڕاو | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| گۆڕاو | نموونە | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| گۆڕاو | نموونە | Description | | گۆڕاو | نموونە | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### نموونە ### نموونە
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,7 +40,7 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/ckb-IR">ماڵپەڕ</a> · <a href="#🚀-installation">دامەزراندن</a> · <a href="https://starship.rs/ckb-IR/config/">رێکخستن</a> <a href="https://starship.rs">ماڵپەڕ</a> · <a href="#🚀-installation">دامەزراندن</a> · <a href="https://starship.rs/config/">رێکخستن</a>
</p> </p>
<p align="center"> <p align="center">
@ -167,7 +167,7 @@
- **ئاسان:** خێرا لە دامەزراندن – دەست ئەکەیت بە بەکارهێنانی لە چەند خولەکێکدا. - **ئاسان:** خێرا لە دامەزراندن – دەست ئەکەیت بە بەکارهێنانی لە چەند خولەکێکدا.
<p align="center"> <p align="center">
<a href="https://starship.rs/ckb-IR/config/"><strong>بەڵگەنامەکانی Starship بگەڕێ&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>بەڵگەنامەکانی Starship بگەڕێ&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -427,10 +427,6 @@ If you're looking to further customize Starship:
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="ئایکۆنی مووشەکی Starship"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="ئایکۆنی مووشەکی Starship">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Minimale, super schnelle und unendlich anpassbare Prompt für jede Shell! tagline: Der minimalistische, super schnelle und unendlich anpassbare Prompt für jede Shell!
actions: actions:
- theme: brand -
theme: brand
text: Loslegen → text: Loslegen →
link: ./guide/ link: ./de-DE/guide/
features: features:
- -
title: Kompatibel title: Kompatibel
details: Läuft mit den beliebtesten Shells auf den beliebtesten Betriebssystemen. Überall einsetzbar! details: Läuft mit den beliebtesten Shells auf den beliebtesten Betriebssystemen. Überall einsetzbar!
- -
title: Rust-Powered title: Rust-Powered
details: Bringt die Schnelligkeit und Sicherheit von Rust in deine Shell-Prompt. details: Bringt die Schnelligkeit und Sicherheit von Rust in deine Shell-Prompt.
- -
title: Individualisierbar title: Individualisierbar
details: Jedes noch so kleine Detail kann nach Deinen Wünschen angepasst werden, um die Eingabeaufforderung so minimal oder funktionsreich zu gestalten, wie Du es möchtest. details: Jedes noch so kleine Detail kann nach Deinen Wünschen angepasst werden, um die Eingabeaufforderung so minimal oder funktionsreich zu gestalten, wie Du es möchtest.
footer: ICS lizenziert | Copyright © 2019-heute Starship-Mitwirkende footer: ICS lizenziert | Copyright © 2019-heute Starship-Mitwirkende
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship ist eine minimale, super schnelle, und extrem anpassbare Prompt für jede Shell! Sie zeigt die Information, die man benötigt an, während sie schnell und minimal bleibt. Schnell-Installation verfügbar für Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, und PowerShell. description: Starship ist eine minimale, super schnelle, und extrem anpassbare Prompt für jede Shell! Sie zeigt die Information, die man benötigt an, während sie schnell und minimal bleibt. Schnell-Installation verfügbar für Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, und PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Voraussetzungen ### Voraussetzungen
@ -58,6 +57,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
```sh ```sh
brew install starship brew install starship
``` ```
Mit [Winget](https://github.com/microsoft/winget-cli): Mit [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
::: :::
Füge folgendes zum Ende deiner Nushell env Datei hinzu (finde sie, indem du `$nu.env-path` in Nushell ausführst): Füge folgendes zum Ende deiner Nushell env Datei hinzu (finde sie, indem du `$nu.env-path` in Nushell ausführst):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -159,7 +159,7 @@ Hier sind ein paar Beispiele:
#### Style-Strings #### Style-Strings
Die meisten Module in Starship lassen dich den Darstellungsstil verändern. Dies passiert meistens an einem bestimmten Eintrag (gewöhnlich `style` genannt), der einen String mit den Einstellungen darstellt. Es folgen ein paar Beispiele für solche Strings zusammen der mit Beschreibungen, was sie bewirken. Details zur vollen Syntax findest du im [Erweiterten Konfigurationshandbuch](../advanced-config/). Die meisten Module in Starship lassen dich den Darstellungsstil verändern. Dies passiert meistens an einem bestimmten Eintrag (gewöhnlich `style` genannt), der einen String mit den Einstellungen darstellt. Es folgen ein paar Beispiele für solche Strings zusammen der mit Beschreibungen, was sie bewirken. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -198,16 +198,16 @@ Dies ist eine Liste mit Prompt-weiten Konfigurationsoptionen.
### Optionen ### Optionen
| Option | Standartwert | Beschreibung | | Option | Standartwert | Beschreibung |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Das Aussehen des Prompts festlegen. | | `format` | [link](#default-prompt-format) | Das Aussehen des Prompts festlegen. |
| `right_format` | `''` | Sieh [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout für das Scannen von Dateien (in Millisekunden). | | `scan_timeout` | `30` | Timeout für das Scannen von Dateien (in Millisekunden). |
| `command_timeout` | `500` | Maximale Zeit für von Starship ausgeführte Kommandos. | | `command_timeout` | `500` | Maximale Zeit für von Starship ausgeführte Kommandos. |
| `add_newline` | `true` | Fügt leere Zeilen zwischen Shell Prompts ein. | | `add_newline` | `true` | Fügt leere Zeilen zwischen Shell Prompts ein. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -301,6 +301,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1889,7 +1890,7 @@ The following variables can be used in `format`:
| Variable | Beschreibung | | Variable | Beschreibung |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3357,7 +3358,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- Das aktuelle Verzeichnis enthält eine `.python-version`-Datei - Das aktuelle Verzeichnis enthält eine `.python-version`-Datei
- Das aktuelle Verzeichnis enthält eine `Pipfile`-Datei - Das aktuelle Verzeichnis enthält eine `Pipfile`-Datei
@ -3429,16 +3430,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Optionen
| Option | Standartwert | Beschreibung |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Das Format für das Modul. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Stil für dieses Modul. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Beispiel | Beschreibung |
| --------- | --------- | ------------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Spiegelt den Wert der Option `symbol` |
| style\* | | Spiegelt den Wert der Option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3585,11 +3607,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Beispiel | Beschreibung | | Variable | Beispiel | Beschreibung |
| --------- | -------- | ------------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Spiegelt den Wert der Option `symbol` | | symbol | | Spiegelt den Wert der Option `symbol` |
| style\* | | Spiegelt den Wert der Option `style` | | style\* | | Spiegelt den Wert der Option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4184,6 +4207,7 @@ Das `username` Modul zeigt den Namen des aktiven Benutzers. Das Modul wird gezei
- Der aktuelle Benutzer ist nicht der eingeloggte Benutzer - Der aktuelle Benutzer ist nicht der eingeloggte Benutzer
- Der Benutzer ist aktuell via SSH verbunden - Der Benutzer ist aktuell via SSH verbunden
- Die Variable `show_always` ist auf true gesetzt - Die Variable `show_always` ist auf true gesetzt
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4193,13 +4217,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Optionen ### Optionen
| Option | Standartwert | Beschreibung | | Option | Standartwert | Beschreibung |
| ------------- | ----------------------- | ---------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | Stil wenn der Benutzer nicht unter root läuft. | | `style_user` | `'bold yellow'` | Stil wenn der Benutzer nicht unter root läuft. |
| `format` | `'[$user]($style) in '` | Das Format für das Modul. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Immer das `username` Modul anzeigen. | | `format` | `'[$user]($style) in '` | Das Format für das Modul. |
| `disabled` | `false` | Deavktiviert das `username` Modul. | | `show_always` | `false` | Immer das `username` Modul anzeigen. |
| `disabled` | `false` | Deavktiviert das `username` Modul. |
### Variables ### Variables
@ -4210,6 +4235,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Beispiel ### Beispiel
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4221,6 +4248,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/de-DE">Website</a> <a href="https://starship.rs">Website</a>
· ·
<a href="#🚀-installation">Installation</a> <a href="#🚀-installation">Installation</a>
· ·
<a href="https://starship.rs/de-DE/config/">Konfiguration</a> <a href="https://starship.rs/config/">Konfiguration</a>
</p> </p>
<p align="center"> <p align="center">
@ -161,7 +161,7 @@
align="right" align="right"
/> />
**Minimale, super schnelle und unendlich anpassbare Prompt für jede Shell!** **Der minimalistische, super schnelle und unendlich anpassbare Prompt für jede Shell!**
- **Schnell:** sie ist schnell _sehr, sehr_ schnell! 🚀 - **Schnell:** sie ist schnell _sehr, sehr_ schnell! 🚀
- **Konfigurierbar:** konfiguriere jedes Detail der Prompt. - **Konfigurierbar:** konfiguriere jedes Detail der Prompt.
@ -171,7 +171,7 @@
- **Einfach:** schnell zu installieren  Betriebsbereit in nur wenigen Minuten. - **Einfach:** schnell zu installieren  Betriebsbereit in nur wenigen Minuten.
<p align="center"> <p align="center">
<a href="https://starship.rs/de-DE/config/"><strong>Schau dir die Starship-Dokumentation an&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Schau dir die Starship-Dokumentation an&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Schaut euch bitte auch die Projekte an, die die Entstehung von Starship inspirie
Unterstütze dieses Projekt, indem du [ein Sponsor wirst](https://github.com/sponsors/starship). Dein Name und Logo wird hier mit einem Link zu deiner Website erscheinen. Unterstütze dieses Projekt, indem du [ein Sponsor wirst](https://github.com/sponsors/starship). Dein Name und Logo wird hier mit einem Link zu deiner Website erscheinen.
**Unterstützer**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship Raketen-Symbol"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship Raketen-Symbol">

View File

@ -5,7 +5,7 @@ Um Starship zu installieren, musst du zwei Dinge tun:
1. Lade die **starship** Datei auf den Computer herunter 1. Lade die **starship** Datei auf den Computer herunter
1. Weise deine Shell an die Starship Datei als Eingabeaufforderung zu nutzen, indem du eines der Initialisierungs-Skripte benutzt 1. Weise deine Shell an die Starship Datei als Eingabeaufforderung zu nutzen, indem du eines der Initialisierungs-Skripte benutzt
Die Anleitung auf [der Hauptseite](../guide/#🚀-installation) wird für die meisten Benutzer ausreichend sein. Für einige speziellere Plattformen wird jedoch eine speziellere Anleitung benötigt. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. Für einige speziellere Plattformen wird jedoch eine speziellere Anleitung benötigt.
Es gibt sehr viele Plattformen, sodass diese nicht alle in die Hauptanleitung passen, aus diesem Grund sind hier ein paar Installationsanweisungen für ein paar Plattformen von der Community. Ist deine Platform nicht dabei? Dann füge bitte deine hinzu, sobald du herausgefunden hast wie man starship mit dieser benutzt! Es gibt sehr viele Plattformen, sodass diese nicht alle in die Hauptanleitung passen, aus diesem Grund sind hier ein paar Installationsanweisungen für ein paar Plattformen von der Community. Ist deine Platform nicht dabei? Dann füge bitte deine hinzu, sobald du herausgefunden hast wie man starship mit dieser benutzt!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: '¡El prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos!' tagline: '¡El prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos!'
actions: actions:
- theme: brand -
theme: brand
text: Comenzar → text: Comenzar →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibilidad primero title: Compatibilidad primero
details: Funciona en los intérprete de comandos más comunes de los sistemas operativos más comunes. ¡Úsalo en todas partes! details: Funciona en los intérprete de comandos más comunes de los sistemas operativos más comunes. ¡Úsalo en todas partes!
- -
title: Desarrollado en Rust title: Desarrollado en Rust
details: Obtén la mayor velocidad y seguridad de Rust, para hacer tu prompt lo más rápida y segura posible. details: Obtén la mayor velocidad y seguridad de Rust, para hacer tu prompt lo más rápida y segura posible.
- -
title: Personalizable title: Personalizable
details: Puedes personalizar cada pequeño detalle a tu gusto, de manera que puedes tener un prompt minimalista o rico en funcionalidades. details: Puedes personalizar cada pequeño detalle a tu gusto, de manera que puedes tener un prompt minimalista o rico en funcionalidades.
footer: Bajo una licencia ISC | Derechos de autor © 2019-presente Colaboradores de Starship footer: Bajo una licencia ISC | Derechos de autor © 2019-presente Colaboradores de Starship
@ -24,12 +25,10 @@ metaTitle: "Starship: el prompt multi-intérprete"
description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos! Muestra la información que necesitas, a la par que es elegante y minimalista. Instalación rápida disponible para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, y PowerShell.' description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos! Muestra la información que necesitas, a la par que es elegante y minimalista. Instalación rápida disponible para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, y PowerShell.'
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Prerequisitos ### Prerequisitos
@ -58,6 +57,7 @@ description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: '¡Starship es el prompt minimalista, ultrarápido e infinitamente
::: :::
Añade lo siguiente al final de tu archivo Nushell env (encuéntralo ejecutando `$nu.env-path` en Nushell): Añade lo siguiente al final de tu archivo Nushell env (encuéntralo ejecutando `$nu.env-path` en Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
Algunos intérpretes de comandos soportan un prompt derecho que se renderiza en la misma línea que la entrada. Starship puede establecer el contenido del prompt derecho usando la opción `right_format`. Cualquier módulo que pueda ser usado en `format` también es soportado en `right_format`. La variable `$all` solo contendrá módulos no utilizados explícitamente en `format` o `right_format`. Algunos intérpretes de comandos soportan un prompt derecho que se renderiza en la misma línea que la entrada. Starship puede establecer el contenido del prompt derecho usando la opción `right_format`. Cualquier módulo que pueda ser usado en `format` también es soportado en `right_format`. La variable `$all` solo contendrá módulos no utilizados explícitamente en `format` o `right_format`.
Nota: El prompt derecho es una sola línea siguiendo la ubicación de entrada. Para alinear los módulos arriba de la línea de entrada en un prompt multi-línea, vea el [módulo `fill`](../config/#fill). Nota: El prompt derecho es una sola línea siguiendo la ubicación de entrada. Para alinear los módulos arriba de la línea de entrada en un prompt multi-línea, vea el [módulo de `relleno`](../config/#fill).
`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash. `right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -158,7 +158,7 @@ Por ejemplo:
#### Cadenas de Estilo #### Cadenas de Estilo
La mayoría de los módulos de starship permiten configurar sus estilos de visualización. Esto se consigue con una entrada (normalmente llamada `style`) que no es más que un texto donde se especifica la configuración. A continuación mostramos algunos ejemplos de cadenas de estilo junto con su funcionalidad. Para más detalles sobre la sintaxis completa, consultar [la guía de configuración avanzada](../advanced-config/). La mayoría de los módulos de starship permiten configurar sus estilos de visualización. Esto se consigue con una entrada (normalmente llamada `style`) que no es más que un texto donde se especifica la configuración. A continuación mostramos algunos ejemplos de cadenas de estilo junto con su funcionalidad. Para más detalles sobre la sintaxis completa, consultar la [guía de configuración avanzada](../advanced-config/).
- `'fg:green bg:blue'` define el texto con color verde y el color de fondo azul - `'fg:green bg:blue'` define el texto con color verde y el color de fondo azul
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ Esta es la lista de opciones de configuración del prompt.
### Opciones ### Opciones
| Opción | Predeterminado | Descripción | | Opción | Predeterminado | Descripción |
| ----------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [ver aquí](#default-prompt-format) | Configura el formato del prompt. | | `format` | [ver aquí](#default-prompt-format) | Configura el formato del prompt. |
| `right_format` | `''` | Ver [Habilitar prompt derecho](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Tiempo de espera tras el que Starship escanea archivos (en milisegundos). | | `scan_timeout` | `30` | Tiempo de espera tras el que Starship escanea archivos (en milisegundos). |
| `command_timeout` | `500` | Tiempo de espera para los comandos ejecutados por Starship (en milisegundos). | | `command_timeout` | `500` | Tiempo de espera para los comandos ejecutados por Starship (en milisegundos). |
| `add_newline` | `true` | Inserta un línea en blanco entre las instrucciones del intérprete de comandos. | | `add_newline` | `true` | Inserta un línea en blanco entre las instrucciones del intérprete de comandos. |
| `paleta` | `''` | Establece la paleta de color de `paletas` a utilizar. | | `paleta` | `''` | Establece la paleta de color de `paletas` a utilizar. |
| `paletas` | `{}` | Colección de paletas de colores que asignan [colores](../advanced-config/#style-strings) a nombres definidos por el usuario. Tenga en cuenta que las paletas de colores no pueden hacer referencia a sus propias definiciones de color. | | `paletas` | `{}` | Colección de paletas de colores que asignan [colores](../advanced-config/#style-strings) a nombres definidos por el usuario. Tenga en cuenta que las paletas de colores no pueden hacer referencia a sus propias definiciones de color. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -529,7 +530,7 @@ La opción `display` es un arreglo de la siguiente tabla.
| Opción | Predeterminado | Descripción | | Opción | Predeterminado | Descripción |
| -------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | -------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `threshold` | `10` | El umbral para la opción de visualización. | | `threshold` | `10` | El umbral para la opción de visualización. |
| `style` | `'red bold'` | El estilo usado cuando si la opción `display` está activa. | | `style` | `'red bold'` | El estilo usado cuando si la opción <0>display</0> está activa. |
| `charging_symbol` | | Símbolo opcional que se muestra si la opción de visualización está en uso, por defecto en la opción `charging_symbol` de la batería. | | `charging_symbol` | | Símbolo opcional que se muestra si la opción de visualización está en uso, por defecto en la opción `charging_symbol` de la batería. |
| `discharging_symbol` | | Símbolo opcional que se muestra si la opción de visualización está en uso, por defecto en la opción `discharging_symbol` de la batería. | | `discharging_symbol` | | Símbolo opcional que se muestra si la opción de visualización está en uso, por defecto en la opción `discharging_symbol` de la batería. |
@ -1888,7 +1889,7 @@ Las siguientes variables se pueden utilizar en `format`:
| Variable | Descripción | | Variable | Descripción |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------ | | ----------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `all_status` | Atajo para `$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Muestra la cadena de formato de `diverged` `ahead` o `behind` o `up_to_date` basado en el estado actual del repositorio. | | `ahead_behind` | Muestra la cadena de formato de `diverged` `ahead` o `behind` o `up_to_date` basado en el estado actual del repositorio. |
| `conflicted` | Muestra `conflicted` cuando esta rama tiene conflictos de fusión. | | `conflicted` | Muestra `conflicted` cuando esta rama tiene conflictos de fusión. |
| `sin seguimiento` | Muestra `untracked` cuando hay archivos sin rastrear en el directorio de trabajo. | | `sin seguimiento` | Muestra `untracked` cuando hay archivos sin rastrear en el directorio de trabajo. |
@ -2196,23 +2197,23 @@ El módulo `hostname` muestra el nombre de host del sistema.
### Opciones ### Opciones
| Opción | Predeterminado | Descripción | | Opción | Predeterminado | Descripción |
| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ----------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ssh_only` | `true` | Mostrar sólo el nombre de host cuando esté conectado a una sesión SSH. | | `ssh_only` | `true` | Mostrar sólo el nombre de host cuando esté conectado a una sesión SSH. |
| `ssh_symbol` | `'🌐 '` | Una cadena de formato que representa el símbolo cuando se conecta a la sesión SSH. | | `ssh_symbol` | `'🌐 '` | Una cadena de formato que representa el símbolo cuando se conecta a la sesión SSH. |
| `trim_at` | `'.'` | Cadena en la que el nombre del host se corta, después de la primera coincidencia. `'.'` will stop after the first dot. `''` deshabilitará cualquier truncamiento. | | `trim_at` | `'.'` | Cadena en la que el nombre del host se corta, después de la primera coincidencia. `'.'` will stop after the first dot. `''` deshabilitará cualquier truncamiento. |
| `detect_env_vars` | `[]` | Qué variable(s) de entorno deben activar este módulo. | | `detect_env_vars` | `[]` | Qué variable(s) de entorno deben activar este módulo. |
| `format` | `'[$ssh_symbol$hostname]($style) in '` | El formato del módulo. | | `format` | `'[$ssh_symbol$hostname]($style) in '` | El formato del módulo. |
| `style` | `'negrita oscurecida verde'` | El estilo del módulo. | | `style` | `'negrita oscurecida verde'` | El estilo del módulo. |
| `disabled` | `false` | Deshabilita el módulo `hostname`. | | `disabled` | `false` | Deshabilita el módulo `hostname`. |
### Variables ### Variables
| Variable | Ejemplo | Descripción | | Variable | Ejemplo | Descripción |
| nombre del host | `computadora` | El nombre de host de la computadora | | --------------- | ------------- | -------------------------------------------------------------- |
| style\* | | Refleja el valor de la opción `style` | | nombre del host | `computadora` | El nombre de host de la computadora |
| ssh_symbol | `'🌏 '` | El símbolo a representar cuando está conectado a la sesión SSH | | style\* | | Refleja el valor de la opción `style` |
| ssh_symbol | `'🌏 '` | El símbolo a representar cuando está conectado a la sesión SSH |
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo *: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Muestra la versión de python dentro de un entorno virtual local.
# Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
# Ten en cuenta que esto solo funcionará cuando el venv esté dentro del proyecto y sólo
# funcionará en el directorio que contiene el directorio venv dir pero ¿tal vez esté bien? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Opciones
| Opción | Predeterminado | Descripción |
| ------------------- | ------------------------------------ | --------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | El estilo del módulo. |
| `detect_extensions` | `['.qmd']` | Qué extensiones deberían activar este módulo. |
| `detect_files` | `['_quarto.yml']` | Qué nombres de archivo deberían activar este módulo. |
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Ejemplo | Descripción |
| --------- | --------- | -------------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Refleja el valor de la opción `symbol` |
| style\* | | Refleja el valor de la opción `style` |
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
## R ## R
@ -3584,11 +3606,12 @@ Starship obtiene la versión actual de Ruby ejecutando `ruby -v`.
### Variables ### Variables
| Variable | Ejemplo | Descripción | | Variable | Ejemplo | Descripción |
| --------- | -------- | -------------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | La versión de `ruby` | | version | `v2.5.1` | La versión de `ruby` |
| symbol | | Refleja el valor de la opción `symbol` | | symbol | | Refleja el valor de la opción `symbol` |
| style\* | | Refleja el valor de la opción `style` | | style\* | | Refleja el valor de la opción `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo *: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
@ -4183,6 +4206,7 @@ El módulo `username` muestra el nombre de usuario activo. El módulo se mostrar
- El usuario actual no es el mismo que el que está conectado - El usuario actual no es el mismo que el que está conectado
- El usuario está actualmente conectado como una sesión SSH - El usuario está actualmente conectado como una sesión SSH
- La variable `show_always` se establece en true - La variable `show_always` se establece en true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ La conexión SSH se detecta comprobando las variables de entorno `SSH_CONNECTION
### Opciones ### Opciones
| Opción | Predeterminado | Descripción | | Opción | Predeterminado | Descripción |
| ------------- | ----------------------- | ------------------------------------------------ | | ----------------- | ----------------------- | ----------------------------------------------------- |
| `style_root` | `'bold red'` | El estilo usado cuando el usuario es root/admin. | | `style_root` | `'bold red'` | El estilo usado cuando el usuario es root/admin. |
| `style_user` | `'bold yellow'` | El estilo usado para usuarios no root. | | `style_user` | `'bold yellow'` | El estilo usado para usuarios no root. |
| `format` | `'[$user]($style) in '` | El formato del módulo. | | `detect_env_vars` | `[]` | Qué variable(s) de entorno deben activar este módulo. |
| `show_always` | `false` | Siempre muestra el módulo `username`. | | `format` | `'[$user]($style) in '` | El formato del módulo. |
| `disabled` | `false` | Deshabilita el módulo `username`. | | `show_always` | `false` | Siempre muestra el módulo `username`. |
| `disabled` | `false` | Deshabilita el módulo `username`. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ La conexión SSH se detecta comprobando las variables de entorno `SSH_CONNECTION
### Ejemplo ### Ejemplo
#### Mostrar siempre el nombre del host
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Ocultar el nombre de host en sesiones remotas de tmux
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
El módulo `vagrant` muestra la versión instalada de [Vagrant](https://www.vagrantup.com/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones: El módulo `vagrant` muestra la versión instalada de [Vagrant](https://www.vagrantup.com/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/es-ES">Sitio web</a> <a href="https://starship.rs">Sitio web</a>
<a href="#🚀-installation">Instalación</a> <a href="#🚀-installation">Instalación</a>
<a href="https://starship.rs/es-ES/config/">Configuración</a> <a href="https://starship.rs/config/">Configuración</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Fácil:** rápido de instalar empieza a usarlo en minutos. - **Fácil:** rápido de instalar empieza a usarlo en minutos.
<p align="center"> <p align="center">
<a href="https://starship.rs/es-ES/config/"><strong>Explora la documentación de Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Explora la documentación de Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Por favor, revisa estas obras anteriores que ayudaron a inspirar la creación de
Apoya este proyecto [convirtiéndote en patrocinador](https://github.com/sponsors/starship). Tu nombre o logo aparecerá aquí con un enlace a tu sitio web. Apoya este proyecto [convirtiéndote en patrocinador](https://github.com/sponsors/starship). Tu nombre o logo aparecerá aquí con un enlace a tu sitio web.
**Patrocinadores**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: L'invite minimaliste, ultra-rapide et personnalisable à l'infini pour n'importe quel shell ! tagline: L'invite minimaliste, ultra-rapide et personnalisable à l'infini pour n'importe quel shell !
actions: actions:
- theme: brand -
theme: brand
text: Commencez → text: Commencez →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibilité avant tout title: Compatibilité avant tout
details: Fonctionne sur tous les principaux shells et système d'exploitation. Utilisez-le partout ! details: Fonctionne sur tous les principaux shells et système d'exploitation. Utilisez-le partout !
- -
title: Propulsé par Rust title: Propulsé par Rust
details: Profitez de toute la rapidité et la sécurité de Rust pour rendre votre invite de commandes la plus rapide et fiable possible. details: Profitez de toute la rapidité et la sécurité de Rust pour rendre votre invite de commandes la plus rapide et fiable possible.
- -
title: Personnalisable title: Personnalisable
details: Tous les petits détails sont personnalisable à votre goût, pour rendre votre invite de commandes aussi légère ou complète que le vous souhaitez. details: Tous les petits détails sont personnalisable à votre goût, pour rendre votre invite de commandes aussi légère ou complète que le vous souhaitez.
footer: Licence ISC | Copyright © 2019-présent Contributeurs Starship footer: Licence ISC | Copyright © 2019-présent Contributeurs Starship
@ -24,12 +25,10 @@ metaTitle: "Starship : Invite Multi-Shell"
description: Starship est une invite minimaliste, ultra-rapide et hautement personnalisable pour n'importe quel shell ! Montre les informations dont vous avez besoin tout en restant élégante et minimaliste. Installation rapide disponible pour Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, et PowerShell. description: Starship est une invite minimaliste, ultra-rapide et hautement personnalisable pour n'importe quel shell ! Montre les informations dont vous avez besoin tout en restant élégante et minimaliste. Installation rapide disponible pour Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, et PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Pré-requis ### Pré-requis
@ -58,6 +57,7 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -10,7 +10,7 @@ Les configurations dans cette section sont sujettes à modification dans les fut
## TransientPrompt in PowerShell ## TransientPrompt in PowerShell
It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `Enable-TransientPrompt` in the shell session. To make it permanent, put this statement in your `$PROFILE`. Transience can be disabled on-the-fly with `Disable-TransientPrompt`. Il est possible de remplacer le prompt précédent avec une string personnalisée. Ceci est utile lorsque toutes les informations fournies par l'invité de commande ne sont pas nécessaire. Pour activer ceci, exécutez `Enable-TransientPrompt` dans la session shell. Pour que la modification soit permanente, ajoutez cette commande dans votre `$PROFILE`. Transience can be disabled on-the-fly with `Disable-TransientPrompt`.
By default, the left side of input gets replaced with `>`. To customize this, define a new function called `Invoke-Starship-TransientFunction`. For example, to display Starship's `character` module here, you would do By default, the left side of input gets replaced with `>`. To customize this, define a new function called `Invoke-Starship-TransientFunction`. For example, to display Starship's `character` module here, you would do
@ -26,13 +26,13 @@ Enable-TransientPrompt
## TransientPrompt and TransientRightPrompt in Cmd ## TransientPrompt and TransientRightPrompt in Cmd
Clink allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, run `clink set prompt.transient <value>` where \<value\> can be one of: Clink allows you to replace the previous-printed prompt with custom strings. Ceci est utile lorsque toutes les informations fournies par l'invité de commande ne sont pas nécessaire. To enable this, run `clink set prompt.transient <value>` where \<value\> can be one of:
- `always`: always replace the previous prompt - `always`: always replace the previous prompt
- `same_dir`: replace the previous prompt only if the working directory is same - `same_dir`: replace the previous prompt only if the working directory is same
- `off`: do not replace the prompt (i.e. turn off transience) - `off`: do not replace the prompt (i.e. turn off transience)
You need to do this only once. Make the following changes to your `starship.lua` to customize what gets displayed on the left and on the right: Il est nécessaire de faire cela qu'une fois. Modifiez votre `starship.lua` pour customiser ce qui sera présenté à gauche et à droite:
- By default, the left side of input gets replaced with `>`. To customize this, define a new function called `starship_transient_prompt_func`. This function receives the current prompt as a string that you can utilize. For example, to display Starship's `character` module here, you would do - By default, the left side of input gets replaced with `>`. To customize this, define a new function called `starship_transient_prompt_func`. This function receives the current prompt as a string that you can utilize. For example, to display Starship's `character` module here, you would do
@ -56,7 +56,7 @@ load(io.popen('starship init cmd'):read("*a"))()
## TransientPrompt et TransientRightPrompt dans Fish ## TransientPrompt et TransientRightPrompt dans Fish
It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`. Il est possible de remplacer le prompt précédent avec une string personnalisée. Ceci est utile lorsque toutes les informations fournies par l'invité de commande ne sont pas nécessaire. To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`.
Note that in case of Fish, the transient prompt is only printed if the commandline is non-empty, and syntactically correct. Note that in case of Fish, the transient prompt is only printed if the commandline is non-empty, and syntactically correct.
@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
Certains shells peuvent gérer une invite de commande à droite, sur la même ligne que lentrée utilisateur. Starship peut définir le contenu de cet invite à droite en utilisant loption `right_format`. Nimporte quel module qui peut être utilisé dans `format` est aussi géré dans `right_format`. La variable `$all` va seulement contenir les modules qui ne sont explicitement utilisés ni dans `format`, ni dans `right_format`. Certains shells peuvent gérer une invite de commande à droite, sur la même ligne que lentrée utilisateur. Starship peut définir le contenu de cet invite à droite en utilisant loption `right_format`. Nimporte quel module qui peut être utilisé dans `format` est aussi géré dans `right_format`. La variable `$all` va seulement contenir les modules qui ne sont explicitement utilisés ni dans `format`, ni dans `right_format`.
Note: linvite à droite est une seule ligne, sur la même ligne que lentrée. Pour aligner à droite les modules au-dessus de la ligne dentrée dune invite multiligne, voir le [module `fill`](../config/#fill). Note: linvite à droite est une seule ligne, sur la même ligne que lentrée. 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, nushell, bash. `right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -158,7 +158,7 @@ Par exemple :
#### Chaînes de style #### Chaînes de style
La plupart des modules de Starship vous permettent de configurer leurs styles d'affichage. Cela se fait avec une entrée (généralement appelée `style`) qui est une chaîne de caractères spécifiant la configuration. Voici quelques exemples de chaînes de style avec ce qu'elles font. Pour plus de détails sur la syntaxe complète, consultez le [guide de configuration avancé](../advanced-config/). La plupart des modules de Starship vous permettent de configurer leurs styles d'affichage. Cela se fait avec une entrée (généralement appelée `style`) qui est une chaîne de caractères spécifiant la configuration. Voici quelques exemples de chaînes de style avec ce qu'elles font. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ Voici la liste des options de configuration globales de l'invite de commandes.
### Options ### Options
| Option | Défaut | Description | | Option | Défaut | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [lien](#default-prompt-format) | Configure le format de l'invite. | | `format` | [lien](#default-prompt-format) | Configure le format de l'invite. |
| `right_format` | `''` | Voir [Activer le prompt à droite](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Délai maximal pour le scan des fichiers par starship (en millisecondes). | | `scan_timeout` | `30` | Délai maximal pour le scan des fichiers par starship (en millisecondes). |
| `command_timeout` | `500` | Délai maximal pour les commandes exécutées par starship (en millisecondes). | | `command_timeout` | `500` | Délai maximal pour les commandes exécutées par starship (en millisecondes). |
| `add_newline` | `true` | Insère une ligne vide entre les invites du shell. | | `add_newline` | `true` | Insère une ligne vide entre les invites du shell. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ Les variables suivantes peuvent être utilisées pour la valeur de `format`:
| Variable | Description | | Variable | Description |
| -------------- | --------------------------------------------------------------------------------------------------------------------- | | -------------- | --------------------------------------------------------------------------------------------------------------------- |
| `all_status` | Raccourci pour `$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Affiche la chaine de formatage `diverged`, `ahead`, `behind` ou `up_to_date` en se basant sur létat actuel du dépôt. | | `ahead_behind` | Affiche la chaine de formatage `diverged`, `ahead`, `behind` ou `up_to_date` en se basant sur létat actuel du dépôt. |
| `conflicted` | Affiche `conflicted` lorsque la branche courante a des conflits de fusion. | | `conflicted` | Affiche `conflicted` lorsque la branche courante a des conflits de fusion. |
| `untracked` | Affiche `untracked` lorsqu'il y a des fichiers non suivis dans le répertoire de travail. | | `untracked` | Affiche `untracked` lorsqu'il y a des fichiers non suivis dans le répertoire de travail. |
@ -3428,17 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Affiche la version de python depuis l'intérieur d'un venv local.
# Par défaut, le module sera affiché si lune de ces conditions est remplie:
# Notez que cela ne fonctionnera que lorsque le venv est à l'intérieur du projet,
# et uniquement lorsque vous vous situez dans le répertoire contenant le dossier du venv - The current directory contains a `_quarto.yml` file
# mais peut-être que c'est suffisant? - The current directory contains any `*.qmd` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2']
``` ### Options
| Option | Défaut | Description |
| ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
| `symbole` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Le style pour le module. |
| `detect_extensionsdetect_extensions` | `['.qmd']` | Les extensions qui déclenchent ce module. |
| `detect_files` | `['_quarto.yml']` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Exemple | Description |
| --------- | --------- | -------------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbole | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
*: Cette variable peut uniquement être utilisée dans une chaine de style
## R ## R
@ -3585,11 +3606,12 @@ Starship obtient la version actuelle de Ruby en exécutant `ruby -v`.
### Variables ### Variables
| Variable | Exemple | Description | | Variable | Exemple | Description |
| --------- | -------- | -------------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | La version de `ruby` | | version | `v2.5.1` | La version de `ruby` |
| symbole | | Reflète la valeur de l'option `symbol` | | symbole | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` | | style\* | | Reflète la valeur de l'option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Cette variable peut uniquement être utilisée dans une chaine de style *: Cette variable peut uniquement être utilisée dans une chaine de style
@ -4184,6 +4206,7 @@ Le module `username` affiche le nom de lutilisateur actif. Le module sera aff
- L'utilisateur courant est différent de celui connecté - L'utilisateur courant est différent de celui connecté
- L'utilisateur est actuellement connecté en tant que session SSH - L'utilisateur est actuellement connecté en tant que session SSH
- La variable `show_always` est définie à true - La variable `show_always` est définie à true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4193,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Défaut | Description | | Option | Défaut | Description |
| ------------- | ----------------------- | ---------------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | Le style utilisé quand l'utilisateur est root/admin. | | `style_root` | `'bold red'` | Le style utilisé quand l'utilisateur est root/admin. |
| `style_user` | `'bold yellow'` | Le style utilisé pour les utilisateurs non-root. | | `style_user` | `'bold yellow'` | Le style utilisé pour les utilisateurs non-root. |
| `format` | `'[$user]($style) in '` | Format du module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Toujours afficher le module `username`. | | `format` | `'[$user]($style) in '` | Format du module. |
| `disabled` | `false` | Désactive le module `username`. | | `show_always` | `false` | Toujours afficher le module `username`. |
| `disabled` | `false` | Désactive le module `username`. |
### Variables ### Variables
@ -4210,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Exemple ### Exemple
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4221,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
Le module `vagrant` affiche la version de [Vagrant](https://www.vagrantup.com/) installée. Par défaut, le module sera affiché si lune de ces conditions est remplie: Le module `vagrant` affiche la version de [Vagrant](https://www.vagrantup.com/) installée. Par défaut, le module sera affiché si lune de ces conditions est remplie:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/fr-FR">Site web</a> <a href="https://starship.rs">Site web</a>
· ·
<a href="#🚀-installation">Installation</a> <a href="#🚀-installation">Installation</a>
· ·
<a href="https://starship.rs/fr-FR/config/">Configuration</a> <a href="https://starship.rs/config/">Configuration</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Facile:** rapide à installer  commencez à l'utiliser en quelques minutes. - **Facile:** rapide à installer  commencez à l'utiliser en quelques minutes.
<p align="center"> <p align="center">
<a href="https://starship.rs/fr-FR/config/"><strong>Consultez la documentation de Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Consultez la documentation de Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Voyez ces travaux précédents qui ont contribué à inspirer la création de St
Soutenez ce projet en [devenant un collaborateur](https://github.com/sponsors/starship). Votre nom ou logo apparaîtra ici avec un lien vers votre site Web. Soutenez ce projet en [devenant un collaborateur](https://github.com/sponsors/starship). Votre nom ou logo apparaîtra ici avec un lien vers votre site Web.
**Palier Collaborateur**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Icône de roquette de Starship"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Icône de roquette de Starship">

View File

@ -5,7 +5,7 @@ Pour installer starship, vous devez faire deux choses:
1. Installez le binaire **starship** sur votre ordinateur 1. Installez le binaire **starship** sur votre ordinateur
1. Dire à votre shell d'utiliser le binaire de starship comme invite en modifiant ses scripts d'initialisation 1. Dire à votre shell d'utiliser le binaire de starship comme invite en modifiant ses scripts d'initialisation
Pour la plupart des utilisateurs, les instructions sur [la page principale](../guide/#🚀-installation) fonctionneront bien. Cependant, pour certaines plateformes plus spécialisées, des instructions différentes sont nécessaires. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. Cependant, pour certaines plateformes plus spécialisées, des instructions différentes sont nécessaires.
Il y a tellement de plates-formes, qu'il aurait été déraisonnable de les faire apparaître dans le README principal, voici donc quelques instructions d'installation supplémentaires pour celles-ci, écrites par la communauté. La vôtre n'est pas là ? S'il vous plaît, ajoutez-la ici pour les suivants ! Il y a tellement de plates-formes, qu'il aurait été déraisonnable de les faire apparaître dans le README principal, voici donc quelques instructions d'installation supplémentaires pour celles-ci, écrites par la communauté. La vôtre n'est pas là ? S'il vous plaît, ajoutez-la ici pour les suivants !

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun! tagline: Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun!
actions: actions:
- theme: brand -
theme: brand
text: Mari Mulai → text: Mari Mulai →
link: ./guide/ link: ./guide/
features: features:
- -
title: Kompatibilitas Yang Utama title: Kompatibilitas Yang Utama
details: Dapat berfungsi di shells standar dengan sistem operasi yang paling biasa. Pakai di mana saja! details: Dapat berfungsi di shells standar dengan sistem operasi yang paling biasa. Pakai di mana saja!
- -
title: Dibuat dengan Rust title: Dibuat dengan Rust
details: Menggunakan kecepatan dan keamanan dari Rust, untuk membuat prompt kamu bekerja secepat dan seandal mungkin. details: Menggunakan kecepatan dan keamanan dari Rust, untuk membuat prompt kamu bekerja secepat dan seandal mungkin.
- -
title: Dapat Dikustomisasi title: Dapat Dikustomisasi
details: Kamu dapat mengatur semua detail kecil dengan sesukamu, entah itu untuk membuatnya sebagai prompt yang seminimal mungkin atau kaya akan fitur yang kamu mau. details: Kamu dapat mengatur semua detail kecil dengan sesukamu, entah itu untuk membuatnya sebagai prompt yang seminimal mungkin atau kaya akan fitur yang kamu mau.
footer: Berlisensi ISC | Hak Cipta © 2019-sekarang Kontributor Starship footer: Berlisensi ISC | Hak Cipta © 2019-sekarang Kontributor Starship
@ -24,12 +25,10 @@ metaTitle: "Starship: Prompt Lintas Shell"
description: Starship merupakan sebuah prompt yang minimal, super cepat, dan sangat bisa untuk dikustomisasi untuk shell apapun! Bisa menampilkan informasi yang kamu butuhkan, namun tetap bisa tampil dengan ramping dan minimal. Instalasi sederhana tersedia untuk Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, dan PowerShell. description: Starship merupakan sebuah prompt yang minimal, super cepat, dan sangat bisa untuk dikustomisasi untuk shell apapun! Bisa menampilkan informasi yang kamu butuhkan, namun tetap bisa tampil dengan ramping dan minimal. Instalasi sederhana tersedia untuk Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, dan PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Prasyarat ### Prasyarat
@ -58,6 +57,7 @@ description: Starship merupakan sebuah prompt yang minimal, super cepat, dan san
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -156,7 +156,8 @@ description: Starship merupakan sebuah prompt yang minimal, super cepat, dan san
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Tambahkan baris berikut di akhir env file Nushell anda (dengan menjalankan `$nu.env-path` di Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
Sebagian shells mendukung right prompt yang mana dirender di baris yang sama sesuai dengan masukannya. Starship mampu mengatur konten right prompt dengan menggunakan opsi `right_format`. Semua modul yang bisa digunakan di dalam `format` juga dapat digunakan di dalam `right_format`. Variabel `$all` hanya akan memuat modul yang tidak digunakan secara eksplisit di dalam `format` ataupun `right_format`. Sebagian shells mendukung right prompt yang mana dirender di baris yang sama sesuai dengan masukannya. Starship mampu mengatur konten right prompt dengan menggunakan opsi `right_format`. Semua modul yang bisa digunakan di dalam `format` juga dapat digunakan di dalam `right_format`. Variabel `$all` hanya akan memuat modul yang tidak digunakan secara eksplisit di dalam `format` ataupun `right_format`.
Catatan: Right propmt merupakan sebuah baris yang mengikuti lokasi baris inputan. Untuk membuat modul rata ke kanan di atas baris masukan di dalam multi-line prompt, lihat [`fill` module](../config/#fill). Catatan: Right propmt merupakan sebuah baris yang mengikuti lokasi baris inputan. 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, nushell, bash. `right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -158,7 +158,7 @@ Sebagai contoh:
#### Penataan String #### Penataan String
Sebagian besar modul starship memungkinkan kamu untuk mengkonfigurasi gaya tampilannya. Hal ini dilakukan dengan sebuah entri (biasanya `style`) yang konfigurasinya ditentukan oleh string. Berikut adalah beberapa contoh penataan pada string dan kegunaannya. Untuk detail sintaksis yang lebih lengkap, lihat [panduan konfigurasi lanjutan](../advanced-config/). Sebagian besar modul starship memungkinkan kamu untuk mengkonfigurasi gaya tampilannya. Hal ini dilakukan dengan sebuah entri (biasanya `style`) yang konfigurasinya ditentukan oleh string. Berikut adalah beberapa contoh penataan pada string dan kegunaannya. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ Berikut adalah opsi konfigurasi dari list yang bersifat prompt-wide.
### Opsi ### Opsi
| Opsi | Bawaan | Deskripsi | | Opsi | Bawaan | Deskripsi |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fromat` | [link](#default-prompt-format) | Mengkonfigurasi format pada prompt. | | `fromat` | [link](#default-prompt-format) | Mengkonfigurasi format pada prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Batas waktu starpship untuk memindai file (dalam milidetik). | | `scan_timeout` | `30` | Batas waktu starpship untuk memindai file (dalam milidetik). |
| `command_timeout` | `500` | Batas waktu untuk perintah yang dijalankan starship (dalam milidetik). | | `command_timeout` | `500` | Batas waktu untuk perintah yang dijalankan starship (dalam milidetik). |
| `add_newline` | `true` | Memasukkan baris kosong antara prompt shell. | | `add_newline` | `true` | Memasukkan baris kosong antara prompt shell. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variabel | Deskripsi | | Variabel | Deskripsi |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Opsi
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Gaya penataan untuk modul. |
| `detect_extensions` | `['.qmd']` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `['_quarto.yml']` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variabel
| Variabel | Contoh | Deskripsi |
| --------- | --------- | --------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variabel ### Variabel
| Variabel | Contoh | Deskripsi | | Variabel | Contoh | Deskripsi |
| --------- | -------- | --------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Menyalin nilai dari opsi `symbol` | | symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` | | style\* | | Menyalin nilai dari opsi `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string *: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Opsi ### Opsi
| Opsi | Bawaan | Deskripsi | | Opsi | Bawaan | Deskripsi |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `fromat` | `'[$user]($style) in '` | Format dari modul. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `fromat` | `'[$user]($style) in '` | Format dari modul. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variabel ### Variabel
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Contoh ### Contoh
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/id-ID">Situs Web</a> <a href="https://starship.rs">Situs Web</a>
· ·
<a href="#🚀-installation">Pemasangan</a> <a href="#🚀-installation">Pemasangan</a>
· ·
<a href="https://starship.rs/id-ID/config/">Konfigurasi</a> <a href="https://starship.rs/config/">Konfigurasi</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Mudah:** pemasangan singkat  mulai menggunakannya dalam hitungan menit. - **Mudah:** pemasangan singkat  mulai menggunakannya dalam hitungan menit.
<p align="center"> <p align="center">
<a href="https://starship.rs/id-ID/config/"><strong>Jelajahi dokumentasi Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Jelajahi dokumentasi Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -338,7 +338,7 @@ eval $(starship init ion)
<details> <details>
<summary>Nushell</summary> <summary>Nushell</summary>
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Tambahkan baris berikut di akhir env file Nushell anda (dengan menjalankan `$nu.env-path` di Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
@ -431,10 +431,6 @@ Please check out these previous works that helped inspire the creation of starsh
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Ikon roket Starship"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Ikon roket Starship">

View File

@ -1,11 +1,11 @@
# Advanced Installation # Instalasi Lanjutan
Untuk memasang starship, ada dua hal yang perlu anda lakukan: Untuk memasang starship, ada dua hal yang perlu anda lakukan:
1. Get the **starship** binary onto your computer 1. Dapatkan binary **starship** di komputer anda
1. Tell your shell to use the starship binary as its prompt by modifying its init scripts 1. Atur shell anda untuk menggunakan binary tersebut sebagai prompt dengan mengedit init scripts nya
For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed. Untuk kebayakan pengguna, instruksi pada [halaman utama](../guide/#🚀-installation) akan berjalan lancar. Namun, untuk sebagian platfrom khusus, instruksi khusus diperlukan.
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! 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!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Il prompt minimalista, super veloce e infinitamente personalizzabile per qualsiasi shell! tagline: Il prompt minimalista, super veloce e infinitamente personalizzabile per qualsiasi shell!
actions: actions:
- theme: brand -
theme: brand
text: Inizia → text: Inizia →
link: ./guide/ link: ./guide/
features: features:
- -
title: Prima la compatibilità title: Prima la compatibilità
details: Funziona sulle shell e sui sistemi operativi più comuni. Usalo ovunque! details: Funziona sulle shell e sui sistemi operativi più comuni. Usalo ovunque!
- -
title: Scritto in Rust title: Scritto in Rust
details: Sfrutta la velocità e sicurezza di Rust, per rendere il tuo prompt il più veloce e il più affidabile. details: Sfrutta la velocità e sicurezza di Rust, per rendere il tuo prompt il più veloce e il più affidabile.
- -
title: Personalizzabile title: Personalizzabile
details: Ogni più piccolo dettaglio è personalizzabile a piacere, per rendere questo prompt minimalista o ricco di tutte le funzionalità che desideri. details: Ogni più piccolo dettaglio è personalizzabile a piacere, per rendere questo prompt minimalista o ricco di tutte le funzionalità che desideri.
footer: Licenza ISC | Copyright © 2019-present Starship Collaboratori footer: Licenza ISC | Copyright © 2019-present Starship Collaboratori
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Prerequisiti ### Prerequisiti
@ -58,6 +57,7 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -158,7 +158,7 @@ Per esempio:
#### Stringhe di stile #### Stringhe di stile
La maggior parte dei moduli in starship ti permettono di configurare i loro stili di visualizzazione. Questo viene fatto con una voce (solitamente chiamata `style`) che è una stringa che specifica la configurazione. Ecco alcuni esempi di stringhe di stile per quello che fanno. Per maggiori dettagli sulla sintassi completa, consulta la [guida di configurazione avanzata](../advanced-config/). La maggior parte dei moduli in starship ti permettono di configurare i loro stili di visualizzazione. Questo viene fatto con una voce (solitamente chiamata `style`) che è una stringa che specifica la configurazione. Ecco alcuni esempi di stringhe di stile per quello che fanno. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Opzioni ### Opzioni
| Opzione | Default | Descrizione | | Opzione | Default | Descrizione |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configura il formato del prompt. | | `format` | [link](#default-prompt-format) | Configura il formato del prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout per starship per scansionare i file (in millisecondi). | | `scan_timeout` | `30` | Timeout per starship per scansionare i file (in millisecondi). |
| `command_timeout` | `500` | Timeout per i comandi eseguiti da starship (in millisecondi). | | `command_timeout` | `500` | Timeout per i comandi eseguiti da starship (in millisecondi). |
| `add_newline` | `true` | Inserisce una riga vuota tra i prompt della shell. | | `add_newline` | `true` | Inserisce una riga vuota tra i prompt della shell. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Descrizione | | Variable | Descrizione |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Opzioni
| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Lo stile per il modulo. |
| `detect_extensions` | `['.qmd']` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `['_quarto.yml']` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Esempio | Descrizione |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Esempio | Descrizione | | Variable | Esempio | Descrizione |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Opzioni ### Opzioni
| Opzione | Default | Descrizione | | Opzione | Default | Descrizione |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Esempio ### Esempio
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -171,7 +171,7 @@
- **Facile:** veloce da installare - inizia ad usarlo in pochi minuti. - **Facile:** veloce da installare - inizia ad usarlo in pochi minuti.
<p align="center"> <p align="center">
<a href="https://starship.rs/it-IT/config/"><strong>Esplora la documentazione di Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Esplora la documentazione di Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Ti invito di controllare questi lavori precedenti che hanno contribuito a ispira
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -5,7 +5,7 @@ Per installare starship, è necessario fare due cose:
1. Ottieni il binario **starship** sul tuo computer 1. Ottieni il binario **starship** sul tuo computer
1. Indica alla tua shell di usare il binario starship come prompt modificando i suoi script in init 1. Indica alla tua shell di usare il binario starship come prompt modificando i suoi script in init
Per la maggior parte degli utenti, le istruzioni nella [pagina principale](../guide/#🚀-installation) funzioneranno bene. Tuttavia, per alcune piattaforme più specializzate, sono necessarie istruzioni diverse. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. Tuttavia, per alcune piattaforme più specializzate, sono necessarie istruzioni diverse.
Ci sono così tante piattaforme là fuori che non sono tutte inserite nel README.md principale, così ecco alcune istruzioni di installazione per altre piattaforme della community. La tua non c'è? Per favore, aggiungilo qui se capisci che manca! Ci sono così tante piattaforme là fuori che non sono tutte inserite nel README.md principale, così ecco alcune istruzioni di installazione per altre piattaforme della community. La tua non c'è? Per favore, aggiungilo qui se capisci che manca!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです! tagline: シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!
actions: actions:
- theme: brand -
theme: brand
text: Get Started → text: Get Started →
link: ./guide/ link: ./guide/
features: features:
- -
title: 互換性優先 title: 互換性優先
details: 一般的なほとんどのOSの一般的なほとんどのシェル上で動作します。 あらゆるところで使用してください! details: 一般的なほとんどのOSの一般的なほとんどのシェル上で動作します。 あらゆるところで使用してください!
- -
title: Rust製 title: Rust製
details: Rustの最高レベルの速度と安全性を用いることで、可能な限り高速かつ信頼性を高くしています。 details: Rustの最高レベルの速度と安全性を用いることで、可能な限り高速かつ信頼性を高くしています。
- -
title: カスタマイズ可能 title: カスタマイズ可能
details: それぞれの細かい点は好みにカスタマイズが出来るため、ミニマルにも多機能にも好きなようにプロンプトを設定することができます。 details: それぞれの細かい点は好みにカスタマイズが出来るため、ミニマルにも多機能にも好きなようにプロンプトを設定することができます。
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, PowerShellで簡単に利用できます。 description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, PowerShellで簡単に利用できます。
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### 必要なもの ### 必要なもの
@ -58,6 +57,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
```sh ```sh
brew install starship brew install starship
``` ```
[Winget](https://github.com/microsoft/winget-cli)を使用する [Winget](https://github.com/microsoft/winget-cli)を使用する
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
::: :::
そして、Nushellの設定ファイルの最後に以下を追加してください `$nu.config-path` を実行してください): そして、Nushellの設定ファイルの最後に以下を追加してください `$nu.config-path` を実行してください):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -158,7 +158,7 @@ line2
#### スタイルの設定 #### スタイルの設定
Starshipのほとんどのモジュールでは、表示スタイルを設定できます。 これは、設定を指定する文字列であるエントリ(`style`)で行われます。 スタイル文字列の例とその機能を次に示します。 完全な構文の詳細については、詳細は [高度な設定](../advanced-config/)を参照してください 。 Starshipのほとんどのモジュールでは、表示スタイルを設定できます。 これは、設定を指定する文字列であるエントリ(`style`)で行われます。 スタイル文字列の例とその機能を次に示します。 For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
### オプション ### オプション
| オプション | デフォルト | 説明 | | オプション | デフォルト | 説明 |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 | | `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
| `right_format` | `''` | [右プロンプトの有効化](../advanced-config/#enable-right-prompt)を参照してください。 | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 | | `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 |
| `command_timeout` | `500` | Starshipによって実行されたコマンドのタイムアウト時間 (milliseconds) です。 | | `command_timeout` | `500` | Starshipによって実行されたコマンドのタイムアウト時間 (milliseconds) です。 |
| `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 | | `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ WSL環境のWindowsディレクトリ(例: `/mnt/c/`以下) では、Git Status
| 変数 | 説明 | | 変数 | 説明 |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### オプション
| オプション | デフォルト | 説明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | モジュールのスタイルです。 |
| `detect_extensions` | `['.qmd']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['_quarto.yml']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `disabled` | `false` | Disables the `quarto` module. |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | --------- | ----------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### 変数 ### 変数
| 変数 | 設定例 | 説明 | | 変数 | 設定例 | 説明 |
| --------- | -------- | ----------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | オプション `symbol` の値をミラーする | | symbol | | オプション `symbol` の値をミラーする |
| style\* | | オプション `style` の値をミラーする | | style\* | | オプション `style` の値をミラーする |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: この変数は、スタイル文字列の一部としてのみ使用することができます。 *: この変数は、スタイル文字列の一部としてのみ使用することができます。
@ -4183,6 +4206,7 @@ The `typst` module shows the current installed version of Typst used in a projec
- カレントユーザーが、ログインしているユーザーとは異なる - カレントユーザーが、ログインしているユーザーとは異なる
- ユーザーがSSHセッションとして接続されている - ユーザーがSSHセッションとして接続されている
- `show_always`変数がtrueに設定されている - `show_always`変数がtrueに設定されている
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### オプション ### オプション
| オプション | デフォルト | 説明 | | オプション | デフォルト | 説明 |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | 非rootユーザーに使用されるスタイルです。 | | `style_user` | `'bold yellow'` | 非rootユーザーに使用されるスタイルです。 |
| `format` | `'[$user]($style) in '` | module のフォーマットです。 | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | `username` モジュールを常に表示します。 | | `format` | `'[$user]($style) in '` | module のフォーマットです。 |
| `disabled` | `false` | `username` モジュールを無効にします。 | | `show_always` | `false` | `username` モジュールを常に表示します。 |
| `disabled` | `false` | `username` モジュールを無効にします。 |
### 変数 ### 変数
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 設定例 ### 設定例
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
`vagrant`モジュールは、現在インストールされている[Vagrant](https://www.vagrantup.com/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。 `vagrant`モジュールは、現在インストールされている[Vagrant](https://www.vagrantup.com/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/ja-JP">ウェブサイト</a> <a href="https://starship.rs">ウェブサイト</a>
· ·
<a href="#🚀-installation">インストール</a> <a href="#🚀-installation">インストール</a>
· ·
<a href="https://starship.rs/ja-JP/config/">設定</a> <a href="https://starship.rs/config/">設定</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **簡単:** 迅速なインストールが可能であり、数分で使用開始可能です。 - **簡単:** 迅速なインストールが可能であり、数分で使用開始可能です。
<p align="center"> <p align="center">
<a href="https://starship.rs/ja-JP/config/"><strong>Starshipのドキュメントを見る&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Starshipのドキュメントを見る&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Starshipのさらなるカスタマイズを目指すなら以下を参考にし
[スポンサーになることで](https://github.com/sponsors/starship)このプロジェクトをサポートできます。 名前やロゴがあなたのホームページへのリンクとともに表示されます。 [スポンサーになることで](https://github.com/sponsors/starship)このプロジェクトをサポートできます。 名前やロゴがあなたのホームページへのリンクとともに表示されます。
**スポンサーティア**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -5,7 +5,7 @@ Starship をインストールするには、以下の2つのことを行う必
1. ** starship ** のバイナリをコンピューター上に取得する 1. ** starship ** のバイナリをコンピューター上に取得する
1. Init スクリプトを修正することで、Starship バイナリをプロンプトとして使用するようシェルに指示する 1. Init スクリプトを修正することで、Starship バイナリをプロンプトとして使用するようシェルに指示する
ほとんどのユーザーの場合、[メインページ](../guide/#🚀-installation)の説明でうまく動作します。 しかし、より特殊なプラットフォームでは、別の操作が必要になることがあります。 For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. しかし、より特殊なプラットフォームでは、別の操作が必要になることがあります。
プラットフォームは無数に存在するため、メインの README.md ファイルには書ききれません。そこで、このページでは、コミュニティにより提供された他のプラットフォーム向けのインストール方法について紹介します。 あなたが使用しているプラットフォームが見当たりませんか? その場合は是非、見つけた方法をここに追加してください。 プラットフォームは無数に存在するため、メインの README.md ファイルには書ききれません。そこで、このページでは、コミュニティにより提供された他のプラットフォーム向けのインストール方法について紹介します。 あなたが使用しているプラットフォームが見当たりませんか? その場合は是非、見つけた方法をここに追加してください。

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: 아무 셸에나 적용할 수 있는 고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다! tagline: 아무 셸에나 적용할 수 있는 간결하고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다!
actions: actions:
- theme: brand -
theme: brand
text: 시작하기 → text: 시작하기 →
link: ./guide/ link: ./guide/
features: features:
- -
title: 호환성 우선 title: 호환성 우선
details: 거의 모든 운영 체제의 거의 모든 셸에서 동작합니다. 모든 곳에서 사용해 보세요! details: 거의 모든 운영 체제의 거의 모든 셸에서 동작합니다. 모든 곳에서 사용해 보세요!
- -
title: Rust 기반 title: Rust 기반
details: Rust의 최고 수준의 속도와 안정성으로 프롬프트를 가능한 한 빠르고 안정적으로 만들어 보세요. details: Rust의 최고 수준의 속도와 안정성으로 프롬프트를 가능한 한 빠르고 안정적으로 만들어 보세요.
- -
title: 커스텀 가능 title: 커스텀 가능
details: 모든 사소한 디테일들을 마음대로 커스텀할 수 있어, 프롬프트를 원하는 만큼 간단하게 만들거나 기능이 풍부하게 만들 수 있습니다. details: 모든 사소한 디테일들을 마음대로 커스텀할 수 있어, 프롬프트를 원하는 만큼 간단하게 만들거나 기능이 풍부하게 만들 수 있습니다.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: 크로스-셸 프롬프트"
description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다! 필요한 정보를 깔끔하고 간략하게 표시합니다. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, 및 PowerShell에 빠르게 설치할 수 있습니다. description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다! 필요한 정보를 깔끔하고 간략하게 표시합니다. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, 및 PowerShell에 빠르게 설치할 수 있습니다.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### 준비 사항 ### 준비 사항
@ -58,6 +57,7 @@ description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우
```sh ```sh
brew install starship brew install starship
``` ```
[Winget](https://github.com/microsoft/winget-cli)으로 설치: [Winget](https://github.com/microsoft/winget-cli)으로 설치:
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우
::: :::
다음 내용을 Nushell env 파일 (찾으려면 Nushell에서 `$nu.env-path` 실행) 마지막 부분에 추가하세요: 다음 내용을 Nushell env 파일 (찾으려면 Nushell에서 `$nu.env-path` 실행) 마지막 부분에 추가하세요:
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
일부 셸은 입력과 같은 줄에 렌더링되는 오른쪽 프롬프트를 지원합니다. Starship에서는 `right_format` 옵션을 사용하여 오른쪽 프롬프트의 내용을 설정할 수 있습니다. `format`에서 사용할 수 있는 모든 모듈은 `right_format`에서도 지원됩니다. `$all` 변수는 `format` 또는 `right_format`에서 명시적으로 사용하지 않는 모듈만 포함합니다. 일부 셸은 입력과 같은 줄에 렌더링되는 오른쪽 프롬프트를 지원합니다. Starship에서는 `right_format` 옵션을 사용하여 오른쪽 프롬프트의 내용을 설정할 수 있습니다. `format`에서 사용할 수 있는 모든 모듈은 `right_format`에서도 지원됩니다. `$all` 변수는 `format` 또는 `right_format`에서 명시적으로 사용하지 않는 모듈만 포함합니다.
알림: 오른쪽 프롬프트는 입력 위치에 따라 한 줄로 표시됩니다. 여러 줄 프롬프트에서 입력 선 위의 모듈을 오른쪽 정렬하려면, [`fill` 모듈](../config/#fill)을 참고하세요. 알림: 오른쪽 프롬프트는 입력 위치에 따라 한 줄로 표시됩니다. 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, nushell, bash. `right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Description | | Variable | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `기호` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | 예시 | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | 예시 | Description | | Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| 기호 | | Mirrors the value of option `symbol` | | 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 예시 ### 예시
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/ko-KR">웹사이트</a> <a href="https://starship.rs">웹사이트</a>
· ·
<a href="#🚀-installation">설치</a> <a href="#🚀-installation">설치</a>
· ·
<a href="https://starship.rs/ko-KR/config/">설정</a> <a href="https://starship.rs/config/">설정</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **쉬움:** 빠른 설치 - 몇 분만 투자하면 바로 사용할 수 있습니다. - **쉬움:** 빠른 설치 - 몇 분만 투자하면 바로 사용할 수 있습니다.
<p align="center"> <p align="center">
<a href="https://starship.rs/ko-KR/config/"><strong>Starship 문서 보기&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Starship 문서 보기&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Starship 을 만드는 데에 영감이 되었던 이전 작업들도 살펴보
이 [프로젝트를 후원](https://github.com/sponsors/starship)하여 프로젝트를 지원해 주세요. 여러분의 웹사이트로 이동하는 링크가 걸린 이름 혹은 로고가 여기에 걸립니다. 이 [프로젝트를 후원](https://github.com/sponsors/starship)하여 프로젝트를 지원해 주세요. 여러분의 웹사이트로 이동하는 링크가 걸린 이름 혹은 로고가 여기에 걸립니다.
**후원자 티어**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship 로켓 아이콘"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship 로켓 아이콘">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: De minimalistische, razend snelle en oneindig aanpasbare prompt voor elke shell! tagline: De minimalistische, razend snelle en oneindig aanpasbare prompt voor elke shell!
actions: actions:
- theme: brand -
theme: brand
text: Get Started → text: Get Started →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibility First title: Compatibility First
details: Works on the most common shells on the most common operating systems. Use it everywhere! details: Works on the most common shells on the most common operating systems. Use it everywhere!
- -
title: Rust-Powered title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible. details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
- -
title: Customizable title: Customizable
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be. details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Benodigdheden ### Benodigdheden
@ -58,6 +57,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Description | | Variable | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Example | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Example | Description | | Variable | Example | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Example ### Example
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -35,16 +35,16 @@
<a href="https://stand-with-ukraine.pp.ua" <a href="https://stand-with-ukraine.pp.ua"
><img ><img
src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraineFlat.svg" src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraineFlat.svg"
alt="Stand With Ukraine" alt="Steun Oekraïne"
/></a> /></a>
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/nl-NL">Website</a> <a href="https://starship.rs">Website</a>
· ·
<a href="#🚀-installation">Installatie</a> <a href="#🚀-installation">Installatie</a>
· ·
<a href="https://starship.rs/nl-NL/config/">Configuratie</a> <a href="https://starship.rs/config/">Configuratie</a>
</p> </p>
<p align="center"> <p align="center">
@ -124,7 +124,7 @@
><img ><img
height="20" height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ua.png" src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ua.png"
alt="Українська" alt="Oekraïens"
/></a> /></a>
&nbsp; &nbsp;
<a <a
@ -171,7 +171,7 @@
- **Makkelijk:** snel te installeren  gebruik het binnen enkele minuten. - **Makkelijk:** snel te installeren  gebruik het binnen enkele minuten.
<p align="center"> <p align="center">
<a href="https://starship.rs/nl-NL/config/"><strong>Verken de Starship-documentatie&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Verken de Starship-documentatie&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -180,7 +180,7 @@
### Benodigdheden ### Benodigdheden
- 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)). - Een [Nerd Font](https://www.nerdfonts.com/) is geïnstalleerd en ingeschakeld in je terminal (probeer bijvoorbeeld het [Firacode Nerd Font](https://www.nerdfonts.com/font-downloads)).
### Stap 1. Installeer Starship ### Stap 1. Installeer Starship
@ -202,11 +202,11 @@ Installeer Starship met één van de volgende pakketbeheerders:
Installeer Starship met één van de volgende pakketbeheerders: Installeer Starship met één van de volgende pakketbeheerders:
| Distribution | Repository | Instructies | | Distributie | Repository | Instructies |
| ------------ | -------------------------------------------------------- | --------------------------------- | | ------------------ | -------------------------------------------------------- | --------------------------------- |
| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | **_Eender welke_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` | | FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` | | NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
</details> </details>
@ -219,13 +219,13 @@ Install the latest version for your system:
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
``` ```
Alternatively, install Starship using any of the following package managers: Als alternatief kan je Starship installeren met een van de volgende pakketbeheerders:
| Distribution | Repository | Instructies | | Distributie | Repository | Instructies |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | | **_Eender welke_** | **[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` | | _Eender welke_ | [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` | | _Eender welke_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | | Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/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` <br /> `dnf install starship` | | CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
@ -246,7 +246,7 @@ Install the latest version for your system:
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
``` ```
Alternatively, install Starship using any of the following package managers: Als alternatief kan je Starship installeren met een van de volgende pakketbeheerders:
| Repository | Instructies | | Repository | Instructies |
| -------------------------------------------------------- | --------------------------------------- | | -------------------------------------------------------- | --------------------------------------- |
@ -260,7 +260,7 @@ Alternatively, install Starship using any of the following package managers:
<details> <details>
<summary>Windows</summary> <summary>Windows</summary>
Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest). Installeer de nieuwste versie voor uw systeem met de MSI-installers van de [releases sectie](https://github.com/starship/starship/releases/latest).
Installeer Starship met één van de volgende pakketbeheerders: Installeer Starship met één van de volgende pakketbeheerders:
@ -431,10 +431,6 @@ Please check out these previous works that helped inspire the creation of starsh
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Minimal, blendende rask og uendelig tilpasningsdyktig ledetekst for alle skall! tagline: Minimal, blendende rask og uendelig tilpasningsdyktig ledetekst for alle skall!
actions: actions:
- theme: brand -
theme: brand
text: Get Started → text: Get Started →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibility First title: Compatibility First
details: Works on the most common shells on the most common operating systems. Use it everywhere! details: Works on the most common shells on the most common operating systems. Use it everywhere!
- -
title: Rust-Powered title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible. details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
- -
title: Customizable title: Customizable
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be. details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Nødvendig forutsetninger ### Nødvendig forutsetninger
@ -58,6 +57,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: :::
Legg til følgende i slutten av Nushell env filen (finn den ved å kjøre `$nu.env-path` i Nushell): Legg til følgende i slutten av Nushell env filen (finn den ved å kjøre `$nu.env-path` i Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Description | | Variable | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Example | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Example | Description | | Variable | Example | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Example ### Example
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/no-NO">Nettside</a> <a href="https://starship.rs">Nettside</a>
· ·
<a href="#🚀-installation">Installasjon</a> <a href="#🚀-installation">Installasjon</a>
· ·
<a href="https://starship.rs/no-NO/config/">Konfigurasjon</a> <a href="https://starship.rs/config/">Konfigurasjon</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Lett:** raskt å installere - start å bruke det på minutter. - **Lett:** raskt å installere - start å bruke det på minutter.
<p align="center"> <p align="center">
<a href="https://starship.rs/no-NO/config/"><strong>Utforsk Starship dokumentasjon&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Utforsk Starship dokumentasjon&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Please check out these previous works that helped inspire the creation of starsh
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Minimalny, szybki i nieskończenie konfigurowalny wiersz poleceń dla dowolnej powłoki! tagline: Minimalny, szybki i nieskończenie konfigurowalny wiersz poleceń dla dowolnej powłoki!
actions: actions:
- theme: brand -
theme: brand
text: Pierwsze kroki → text: Pierwsze kroki →
link: ./guide/ link: ./guide/
features: features:
- -
title: Kompatybilność przede wszystkim title: Kompatybilność przede wszystkim
details: Działa na większości powszechnych powłokach, na większości najpopularniejszych systemach. Używaj go wszędzie! details: Działa na większości powszechnych powłokach, na większości najpopularniejszych systemach. Używaj go wszędzie!
- -
title: Napędzany językiem Rust title: Napędzany językiem Rust
details: Zapewnia najlepszą w swojej klasie prędkość i bezpieczeństwo języka Rust, w celu zapewnienia jak najszybszej i niezawodnej odpowiedzi. details: Zapewnia najlepszą w swojej klasie prędkość i bezpieczeństwo języka Rust, w celu zapewnienia jak najszybszej i niezawodnej odpowiedzi.
- -
title: Konfigurowalny title: Konfigurowalny
details: Każdy mały detal jest konfigurowalny do Twoich preferencji, aby wiersz poleceń był tak minimalny lub tak bogaty w funkcje, jak tylko zechcesz. details: Każdy mały detal jest konfigurowalny do Twoich preferencji, aby wiersz poleceń był tak minimalny lub tak bogaty w funkcje, jak tylko zechcesz.
footer: Licencja ISC | Copyright © 2019-obecnie Kontrybutorzy Starship footer: Licencja ISC | Copyright © 2019-obecnie Kontrybutorzy Starship
@ -24,12 +25,10 @@ metaTitle: "Starship: Wiersz poleceń dla dowolnej powłoki"
description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz poleceń dla każdej powłoki! Pokazuje informacje których potrzebujesz, pozostając elegancki i minimalny. Szybka instalacja dostępna dla powłok Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd i PowerShell. description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz poleceń dla każdej powłoki! Pokazuje informacje których potrzebujesz, pozostając elegancki i minimalny. Szybka instalacja dostępna dla powłok Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd i PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Wymagania wstępne ### Wymagania wstępne
@ -58,6 +57,7 @@ description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz
```sh ```sh
brew install starship brew install starship
``` ```
Za pomocą [Winget](https://github.com/microsoft/winget-cli): Za pomocą [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship to minimalny, szybki i ekstremalnie konfigurowalny wiersz
::: :::
Dodaj następujący kod na koniec twojego pliku env Nushell (możesz go znaleść za pomocą `$nu.env-path` w Nushell): Dodaj następujący kod na koniec twojego pliku env Nushell (możesz go znaleść za pomocą `$nu.env-path` w Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: porada ::: porada
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Zmienne | Description | | Zmienne | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Zmienne | Example | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Zmienne | Example | Description | | Zmienne | Example | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: porada ::: porada
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Example ### Example
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/pl-PL">Strona internetowa</a> <a href="https://starship.rs">Strona internetowa</a>
· ·
<a href="#🚀-installation">Instalacja</a> <a href="#🚀-installation">Instalacja</a>
· ·
<a href="https://starship.rs/pl-PL/config/">Konfiguracja</a> <a href="https://starship.rs/config/">Konfiguracja</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Łatwy w obsłudze:** szybka instalacja - zacznij korzystać w kilka minut. - **Łatwy w obsłudze:** szybka instalacja - zacznij korzystać w kilka minut.
<p align="center"> <p align="center">
<a href="https://starship.rs/pl-pl/config/"><strong>Przeglądaj dokumentację Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Przeglądaj dokumentację Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Zapoznaj się z wcześniejszymi projektami, które zainspirowały nas do stworze
Wspomóż ten projekt [stając się sponsorem](https://github.com/sponsors/starship). Twoja nazwa bądź logo pojawi się tutaj wraz z linkiem do Twojej witryny. Wspomóż ten projekt [stając się sponsorem](https://github.com/sponsors/starship). Twoja nazwa bądź logo pojawi się tutaj wraz z linkiem do Twojej witryny.
**Poziom Supporter**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -5,7 +5,7 @@ Aby zainstalować starship, musisz zrobić dwie rzeczy:
1. Pobrać plik wykonywalny **starship** na swój komputer 1. Pobrać plik wykonywalny **starship** na swój komputer
1. Skonfigurować swoją powłokę żeby używała pliku wykonywalnego starship jako wiersza poleceń poprzez modyfikację skryptów inicjalizacyjnych 1. Skonfigurować swoją powłokę żeby używała pliku wykonywalnego starship jako wiersza poleceń poprzez modyfikację skryptów inicjalizacyjnych
Dla większości użytkowników instrukcje na [stronie głównej](../guide/#🚀-installation) są wystarczające. Jednakże, dla niektórych wyspecjalizowanych platform, potrzebne będą inne. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. Jednakże, dla niektórych wyspecjalizowanych platform, potrzebne będą inne.
Istnieje tak wiele platform, że nie zmieściły się one w głównym pliku README.md, więc poniżej znajdują się instrukcje instalacji dla innych platform od społeczności. Nie ma tutaj Twojej? Jeśli się o tym dowiesz, dodaj je tutaj! Istnieje tak wiele platform, że nie zmieściły się one w głównym pliku README.md, więc poniżej znajdują się instrukcje instalacji dla innych platform od społeczności. Nie ma tutaj Twojej? Jeśli się o tym dowiesz, dodaj je tutaj!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell! tagline: O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!
actions: actions:
- theme: brand -
theme: brand
text: Primeiros passos → text: Primeiros passos →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibilidade primeiro title: Compatibilidade primeiro
details: Funciona nos principais shells nos principais sistemas operacionais. Use em qualquer lugar! details: Funciona nos principais shells nos principais sistemas operacionais. Use em qualquer lugar!
- -
title: Poder do Rust title: Poder do Rust
details: Tenha o melhor da velocidade e segurança do Rust, para tornar seu prompt o mais rápido e confiável possível. details: Tenha o melhor da velocidade e segurança do Rust, para tornar seu prompt o mais rápido e confiável possível.
- -
title: Personalizável title: Personalizável
details: Cada pequeno detalhe é personalizável ao seu gosto, para tornar esse prompt o mínimo possível ou rico em recursos, como você preferir. details: Cada pequeno detalhe é personalizável ao seu gosto, para tornar esse prompt o mínimo possível ou rico em recursos, como você preferir.
footer: Licenciado pelo ISC | Todos os direitos reservados © 2019-Presente | Contribuidores Starship footer: Licenciado pelo ISC | Todos os direitos reservados © 2019-Presente | Contribuidores Starship
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd e PowerShell. description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd e PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Pré-requisitos ### Pré-requisitos
@ -58,6 +57,7 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
```sh ```sh
brew install starship brew install starship
``` ```
Com o [Winget](https://github.com/microsoft/winget-cli): Com o [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
::: :::
Adicione o seguinte ao final do seu arquivo env do Nushell (enconte-o rodando `$nu.env-path` no Nushell): Adicione o seguinte ao final do seu arquivo env do Nushell (enconte-o rodando `$nu.env-path` no Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
Alguns shells suportam um prompt direito que é renderizado na mesma linha que a entrada. Starship pode definir o conteúdo do prompt correto usando a opção `right_format`. Qualquer módulo que pode ser usado no `format` também é compatível com `right_format`. A variável `$all` conterá apenas módulos não usado explicitamente em `format` ou `right_format`. Alguns shells suportam um prompt direito que é renderizado na mesma linha que a entrada. Starship pode definir o conteúdo do prompt correto usando a opção `right_format`. Qualquer módulo que pode ser usado no `format` também é compatível com `right_format`. A variável `$all` conterá apenas módulos não usado explicitamente em `format` ou `right_format`.
Nota: O prompt direito é uma única linha após o local de entrada. Para alinhar módulos à direita acima da linha de entrada em um prompt de várias linhas, consulte o [módulo `fill`](../config/#fill). Nota: O prompt direito é uma única linha após o local de entrada. 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, nushell, bash. `right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -106,7 +106,7 @@ format = '''
\$''' \$'''
# com string básica multilinha # com string básica multilinha
format = """ format = """
\\$""" \\$"""
@ -158,7 +158,7 @@ Por exemplo:
#### Estilo dos textos #### Estilo dos textos
A maioria dos módulos no starship permite que você configure seus estilos de exibição. Isso é feito com uma entrada (normalmente chamada de `estilo`) que é uma string especificando a configuração. Aqui estão alguns exemplos de strings de estilo junto com o que elas fazem. Para obter detalhes sobre a sintaxe completa, consulte o [guia de configuração avançada](../advanced-config/). A maioria dos módulos no starship permite que você configure seus estilos de exibição. Isso é feito com uma entrada (normalmente chamada de `estilo`) que é uma string especificando a configuração. Aqui estão alguns exemplos de strings de estilo junto com o que elas fazem. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `"fg:green bg:blue"` define o texto para verde e o fundo azul - `"fg:green bg:blue"` define o texto para verde e o fundo azul
- `"bg:blue fg:bright-green"` define o texto para verde brilhante e o fundo azul - `"bg:blue fg:bright-green"` define o texto para verde brilhante e o fundo azul
@ -197,16 +197,16 @@ Esta é a lista de opções de configuração em todo o prompt.
### Opções ### Opções
| Opções | Padrão | Descrição | | Opções | Padrão | Descrição |
| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configura o formato do prompt. | | `format` | [link](#default-prompt-format) | Configura o formato do prompt. |
| `right_format` | `''` | Veja [Ativa o prompt direito](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). | | `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). |
| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (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. | | `add_newline` | `true` | Insere linha vazia entre os prompts do shell. |
| `palette` | `''` | Define qual a paleta de cores de `palettes` será usada. | | `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. | | `palettes` | `{}` | Collection of color palettes that assign [colors](../advanced-config/#style-strings) to user-defined names. Note que paletas de cores não podem referir-se a suas próprias definições de cores. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ As variáveis a seguir podem ser usadas no `format`:
| Variável | Descrição | | Variável | Descrição |
| -------------- | ---------------------------------------------------------------------------------------------------------- | | -------------- | ---------------------------------------------------------------------------------------------------------- |
| `all_status` | Atalhos para `$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Exibe `diverged`, `ahead`, `behind` or `up_to_date` conforme o formato da string do status do repositório. | | `ahead_behind` | Exibe `diverged`, `ahead`, `behind` or `up_to_date` conforme o formato da string do status do repositório. |
| `conflicted` | Exibe `conflicted` quando este braço tenha conflitos no merge. | | `conflicted` | Exibe `conflicted` quando este braço tenha conflitos no merge. |
| `untracked` | Exibe `untracked` quando há arquivos não rastreados no diretório atual. | | `untracked` | Exibe `untracked` quando há arquivos não rastreados no diretório atual. |
@ -3356,7 +3357,7 @@ O módulo `python` exibe a versão atual instalada do [Python](https://www.pytho
Se o `pyenv_version_name` estiver definido como `true`, será exibido o nome da versão do pyenv. Caso contrario, ele exibirá o número da versão do `python --version`. Se o `pyenv_version_name` estiver definido como `true`, será exibido o nome da versão do pyenv. Caso contrario, ele exibirá o número da versão do `python --version`.
Por padrão o módulo vai exibir se uma das condições a seguir for atendida: Por padrão, o módulo será exibido se qualquer das seguintes condições for atendida:
- O diretório atual tenha um arquivo `.python-version` - O diretório atual tenha um arquivo `.python-version`
- O diretório atual tenha um arquivo `Pipfile` - O diretório atual tenha um arquivo `Pipfile`
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Exibe a versão do python de dentro de um venv local.
# Por padrão, o módulo será exibido se qualquer das seguintes condições for atendida:
# Note que isso só funcionará quando o venv estiver dentro do projeto e só
# funcionará apenas no diretório que contém o diretório venv, mas talvez isso seja ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Opções
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | O estilo do módulo. |
| `detect_extensions` | `['.qmd']` | Quais extensões devem ativar este módulo. |
| `detect_files` | `['_quarto.yml']` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | --------- | --------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| 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
## R ## R
@ -3584,11 +3606,12 @@ O Starship pega a versão atual do Ruby rodando `ruby -v`.
### Variáveis ### Variáveis
| Variável | Exemplo | Descrição | | Variável | Exemplo | Descrição |
| --------- | -------- | --------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | A versão do `ruby` | | version | `v2.5.1` | A versão do `ruby` |
| symbol | | Espelha o valor da opção `symbol` | | symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` | | style\* | | Espelha o valor da opção `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Esta variável só pode ser usada como parte de uma string de estilo *: Esta variável só pode ser usada como parte de uma string de estilo
@ -4183,6 +4206,7 @@ O módulo `username` mostra o nome de usuário do usuário ativo. O módulo ser
- O usuário atual não é o mesmo que está logado - O usuário atual não é o mesmo que está logado
- O usuário atual esta conectado em uma sessão SSH - O usuário atual esta conectado em uma sessão SSH
- A variável `show_always` esta definida como true - A variável `show_always` esta definida como true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ Conexões SSH são detectadas checando as variáveis de ambiente `SSH_CONNECTION
### Opções ### Opções
| Opções | Padrão | Descrição | | Opções | Padrão | Descrição |
| ------------- | ----------------------- | --------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | O estilo usado quando o usuário é root/admin. | | `style_root` | `'bold red'` | O estilo usado quando o usuário é root/admin. |
| `style_user` | `'bold yellow'` | O estilo usado para usuários não root. | | `style_user` | `'bold yellow'` | O estilo usado para usuários não root. |
| `format` | `'[$user]($style) in '` | O formato do módulo. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Sempre exibe o módulo `username`. | | `format` | `'[$user]($style) in '` | O formato do módulo. |
| `disabled` | `false` | Desabilita o módulo `username`. | | `show_always` | `false` | Sempre exibe o módulo `username`. |
| `disabled` | `false` | Desabilita o módulo `username`. |
### Variáveis ### Variáveis
@ -4209,6 +4234,8 @@ Conexões SSH são detectadas checando as variáveis de ambiente `SSH_CONNECTION
### Exemplo ### Exemplo
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
O módulo `vagrant` exibe a versão atual instalada do [Vagrant](https://www.vagrantup.com/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida: O módulo `vagrant` exibe a versão atual instalada do [Vagrant](https://www.vagrantup.com/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:

View File

@ -58,7 +58,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
## Porque eu vejo alertas de `Executing command "..." timed out.`? ## Porque eu vejo alertas de `Executing command "..." timed out.`?
O Starship executa comandos diferentes para recuperar as informações para exibir no prompt, por exemplo a versão de um programa ou o status atual do git. Para ter certeza de que o starship não travou durante uma execução destes comandos nos definimos um limite de tempo, se um comando ultrapassar este limite o starship vai parar a execução do comando e exibe o alerta acima, esse é um comportamento esperado. Este limite de tempo é configurado usando o [`command_timeout`key](../config/#prompt) então se você quiser você pode aumentar este limite. Você pode também seguir os passos para debugar para ver qual comando esta demorando e se você pode otimizar ele. Finalmente você pode definir a variável de ambiente `STARSHIP_LOG` para `error` para esconder estes alertas. O Starship executa comandos diferentes para recuperar as informações para exibir no prompt, por exemplo a versão de um programa ou o status atual do git. Para ter certeza de que o starship não travou durante uma execução destes comandos nos definimos um limite de tempo, se um comando ultrapassar este limite o starship vai parar a execução do comando e exibe o alerta acima, esse é um comportamento esperado. Este limite de tempo é configurado usando a [chave](../config/#prompt) `command_timeout` então se você quiser você pode aumentar este limite. Você pode também seguir os passos para debugar para ver qual comando esta demorando e se você pode otimizar ele. Finalmente você pode definir a variável de ambiente `STARSHIP_LOG` para `error` para esconder estes alertas.
## Eu vejo símbolos que não entendo ou não esperado, o que isso significa? ## Eu vejo símbolos que não entendo ou não esperado, o que isso significa?

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/pt-BR">Site</a> <a href="https://starship.rs">Site</a>
· ·
<a href="#🚀-installation">Instalação</a> <a href="#🚀-installation">Instalação</a>
· ·
<a href="https://starship.rs/pt-BR/config/">Configuração</a> <a href="https://starship.rs/config/">Configuração</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Fácil:**Instalação rápida comece a usar em minutos. - **Fácil:**Instalação rápida comece a usar em minutos.
<p align="center"> <p align="center">
<a href="https://starship.rs/pt-BR/config/"><strong>Consulte a documentação&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Consulte a documentação&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Por favor, confira esses trabalhos anteriores que ajudaram a inspirar a criaçã
Apoie este projeto [tornando-se um patrocinador](https://github.com/sponsors/starship). O seu nome ou logotipo aparecerá aqui com um link para o seu site. Apoie este projeto [tornando-se um patrocinador](https://github.com/sponsors/starship). O seu nome ou logotipo aparecerá aqui com um link para o seu site.
**Rank de Apoiadores**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Ícone de foguete do Starship"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Ícone de foguete do Starship">

View File

@ -5,7 +5,7 @@ Para instalar o starship, você precisa de duas coisas:
1. O binário do **Starship** em seu computador 1. O binário do **Starship** em seu computador
1. Altere seu shell para usar o binário do starship como seu prompt alterando os scripts init 1. Altere seu shell para usar o binário do starship como seu prompt alterando os scripts init
Para a maioria dos usuários as instruções na [pagina principal](../guide/#🚀-installation) irá funcionar perfeitamente. No entanto para algumas plataformas mais especificas, instruções diferentes são necessárias. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. No entanto para algumas plataformas mais especificas, instruções diferentes são necessárias.
Existem tantas plataformas que elas não cabem no arquivo README.md principal, então aqui estão algumas instruções de instalação para outras plataformas da comunidade. A sua não está aqui? Por favor, adicione-o aqui se você descobrir! Existem tantas plataformas que elas não cabem no arquivo README.md principal, então aqui estão algumas instruções de instalação para outras plataformas da comunidade. A sua não está aqui? Por favor, adicione-o aqui se você descobrir!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell! tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
actions: actions:
- theme: brand -
theme: brand
text: Get Started → text: Get Started →
link: ./guide/ link: ./guide/
features: features:
- -
title: Compatibility First title: Compatibility First
details: Works on the most common shells on the most common operating systems. Use it everywhere! details: Works on the most common shells on the most common operating systems. Use it everywhere!
- -
title: Rust-Powered title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible. details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
- -
title: Customizable title: Customizable
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be. details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Prerequisites ### Prerequisites
@ -58,6 +57,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Description | | Variable | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Example | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Example | Description | | Variable | Example | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Example ### Example
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/pt-PT">Website</a> <a href="https://starship.rs">Website</a>
· ·
<a href="#🚀-installation">Installation</a> <a href="#🚀-installation">Installation</a>
· ·
<a href="https://starship.rs/pt-PT/config/">Configuration</a> <a href="https://starship.rs/config/">Configuration</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Easy:** quick to install  start using it in minutes. - **Easy:** quick to install  start using it in minutes.
<p align="center"> <p align="center">
<a href="https://starship.rs/pt-PT/config/"><strong>Explore the Starship docs&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Explore the Starship docs&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Please check out these previous works that helped inspire the creation of starsh
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Минималистичное, быстрое и бесконечно настраиваемое приглашение командной строки для любой оболочки! tagline: Минималистичное, быстрое и бесконечно настраиваемое приглашение командной строки для любой оболочки!
actions: actions:
- theme: brand -
theme: brand
text: Начало работы → text: Начало работы →
link: ./guide/ link: ./guide/
features: features:
- -
title: Совместивость в первую очередь title: Совместивость в первую очередь
details: Работает на большинстве распространенных оболочек и наиболее распространенных операционных системах. Используйте везде! details: Работает на большинстве распространенных оболочек и наиболее распространенных операционных системах. Используйте везде!
- -
title: Основана на Rust title: Основана на Rust
details: Приносит наилучшую в своем классе скорость и безопасность Rust, чтобы сделать вашу оболочку как можно быстрее и надежнее. details: Приносит наилучшую в своем классе скорость и безопасность Rust, чтобы сделать вашу оболочку как можно быстрее и надежнее.
- -
title: Настраиваемая title: Настраиваемая
details: Каждая маленькая деталь настраивается по вашему вкусу, чтобы сделать эту оболочку минималистичной или функциональной, как вы захотите. details: Каждая маленькая деталь настраивается по вашему вкусу, чтобы сделать эту оболочку минималистичной или функциональной, как вы захотите.
footer: Под лицензией ISC | Авторское право © 2019-настоящее Starship Contributors footer: Под лицензией ISC | Авторское право © 2019-настоящее Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Быстрая установка доступна для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, и PowerShell. description: Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Быстрая установка доступна для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, и PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Обязательные условия ### Обязательные условия
@ -58,6 +57,7 @@ description: Starship - минимальная, быстрая и бесконе
```sh ```sh
brew install starship brew install starship
``` ```
С помощью [Winget](https://github.com/microsoft/winget-cli): С помощью [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship - минимальная, быстрая и бесконе
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -158,7 +158,7 @@ line2
#### Строки стиля #### Строки стиля
В Starship, большинство модулей позволяют настроить стили отображения. Это делается записью (обычно называется `style`), которая представляет собой строку, определяющую конфигурацию. Ниже приведены несколько примеров стилей строк, а также, их действия. Подробнее о полном синтаксисе можно прочитать в [расширенном разделе конфигурации](../advanced-config/). В Starship, большинство модулей позволяют настроить стили отображения. Это делается записью (обычно называется `style`), которая представляет собой строку, определяющую конфигурацию. Ниже приведены несколько примеров стилей строк, а также, их действия. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
### Опции ### Опции
| Параметр | По умолчанию | Описание | | Параметр | По умолчанию | Описание |
| ----------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [ссылка](#default-prompt-format) | Настройка форматирования оболочки. | | `format` | [ссылка](#default-prompt-format) | Настройка форматирования оболочки. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Тайм-аут запуска сканирования файлов (в миллисекундах). | | `scan_timeout` | `30` | Тайм-аут запуска сканирования файлов (в миллисекундах). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Переменная | Описание | | Переменная | Описание |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- Текущий каталог содержит файл `.python-version` - Текущий каталог содержит файл `.python-version`
- Текущий каталог содержит файл `Pipfile` - Текущий каталог содержит файл `Pipfile`
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Опции
| Параметр | По умолчанию | Описание |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Стиль модуля. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Переменные
| Переменная | Пример | Описание |
| ---------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
*: Эта переменная может использоваться только в качестве части строки style
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Переменные ### Переменные
| Переменная | Пример | Описание | | Переменная | Пример | Описание |
| ---------- | -------- | ------------------------------------ | | ---------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Отражает значение параметра `symbol` | | symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` | | style\* | | Отражает значение параметра `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Эта переменная может использоваться только в качестве части строки style *: Эта переменная может использоваться только в качестве части строки style
@ -4183,6 +4206,7 @@ By default, the module will be shown if any of the following conditions are met:
- Текущий пользователь отличается от залогиненного - Текущий пользователь отличается от залогиненного
- Пользователь подключен к SSH-сессии - Пользователь подключен к SSH-сессии
- Переменная `show_always` равна true - Переменная `show_always` равна true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Опции ### Опции
| Параметр | По умолчанию | Описание | | Параметр | По умолчанию | Описание |
| ------------- | ----------------------- | ------------------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | Стиль, используемый для всех пользователей, кроме root. | | `style_user` | `'bold yellow'` | Стиль, используемый для всех пользователей, кроме root. |
| `format` | `'[$user]($style) in '` | Формат модуля. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Всегда показывать модуль `username`. | | `format` | `'[$user]($style) in '` | Формат модуля. |
| `disabled` | `false` | Отключает модуль `username`. | | `show_always` | `false` | Всегда показывать модуль `username`. |
| `disabled` | `false` | Отключает модуль `username`. |
### Переменные ### Переменные
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Пример ### Пример
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/ru-RU">Сайт</a> <a href="https://starship.rs">Сайт</a>
· ·
<a href="#🚀-installation">Установка</a> <a href="#🚀-installation">Установка</a>
· ·
<a href="https://starship.rs/ru-RU/config/">Конфигурация</a> <a href="https://starship.rs/config/">Конфигурация</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Легкая:** быстрая установка - начните использовать ее в считанные минуты. - **Легкая:** быстрая установка - начните использовать ее в считанные минуты.
<p align="center"> <p align="center">
<a href="https://starship.rs/ru-RU/config/"><strong>Изучите документацию Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Изучите документацию Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ eval "$(starship init zsh)"
Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт. Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт.
**Supporter Tier**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Иконка ракеты Starship"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Иконка ракеты Starship">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Sade, hızlı, dilediğiniz gibi özelleştirilebilen ve istenilen shell'de kullanılabilen prompt! tagline: Sade, hızlı, dilediğiniz gibi özelleştirilebilen ve istenilen shell'de kullanılabilen prompt!
actions: actions:
- theme: brand -
theme: brand
text: Kullanmaya Başlayın → text: Kullanmaya Başlayın →
link: ./guide/ link: ./guide/
features: features:
- -
title: Önce Uyumluluk title: Önce Uyumluluk
details: En yaygın işletim sistemlerindeki en yaygın shell'ler üzerinde çalışır. Use it everywhere! details: En yaygın işletim sistemlerindeki en yaygın shell'ler üzerinde çalışır. Use it everywhere!
- -
title: Rust-Powered title: Rust-Powered
details: Prompt'u mümkün olduğunca hızlı ve güvenilir hale getirmek için sınıfının en iyisi Rust hızını ve güvenliğini sağlar. details: Prompt'u mümkün olduğunca hızlı ve güvenilir hale getirmek için sınıfının en iyisi Rust hızını ve güvenliğini sağlar.
- -
title: Özelleştirilebilir title: Özelleştirilebilir
details: Her küçük ayrıntı beğeninize göre özelleştirilebilir, böylece bu prompt'u istediğiniz kadar minimal veya zengin özelliklere sahip hale getirirsiniz. details: Her küçük ayrıntı beğeninize göre özelleştirilebilir, böylece bu prompt'u istediğiniz kadar minimal veya zengin özelliklere sahip hale getirirsiniz.
footer: ISC Lisanslı | Telif Hakkı © 2019-günümüz Starship Contributors footer: ISC Lisanslı | Telif Hakkı © 2019-günümüz Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship, her prompt için minimal, son derece hızlı ve son derece özelleştirilebilir bir shelldir! Şık ve minimal kalırken ihtiyacınız olan bilgileri gösterir. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd ve PowerShell için hızlı kurulum mevcuttur. description: Starship, her prompt için minimal, son derece hızlı ve son derece özelleştirilebilir bir shelldir! Şık ve minimal kalırken ihtiyacınız olan bilgileri gösterir. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd ve PowerShell için hızlı kurulum mevcuttur.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Ön koşullar ### Ön koşullar
@ -58,6 +57,7 @@ description: Starship, her prompt için minimal, son derece hızlı ve son derec
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship, her prompt için minimal, son derece hızlı ve son derec
::: :::
Nushell env dosyanızın sonuna aşağıdakileri ekleyin (Nushell'de `$nu.env-path` komutunu çalıştırarak bulabilirsiniz): Nushell env dosyanızın sonuna aşağıdakileri ekleyin (Nushell'de `$nu.env-path` komutunu çalıştırarak bulabilirsiniz):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -137,7 +137,7 @@ echo "🚀"
starship_precmd_user_func="fırlatıldı" starship_precmd_user_func="fırlatıldı"
``` ```
- Özel bir işlemi başlatmadan hemen önce komut istemini çalıştırıp, [`DEBUG`filtreleme mekanizmasını](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/) kullanabilirsiniz. Bununla birlikte, Starship başlatılmadan hemen _önce_, DEBUG sinyalini filtrelemek **zorundasınız**! Starship, DEBUG filtrelemesinin ardından bazı değerleri içerisinde barındırabilir ancak filtreleme işlemi starship başlatıldıktan sonra yazılırsa bazı fonksiyonlar devre dışı kalabilir. - Özel bir işlemi başlatmadan hemen önce komut istemini çalıştırıp, [`DEBUG`filtreleme mekanizmasını](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/) kullanabilirsiniz. Bununla birlikte, Starship başlatılmadan hemen _önce_, DEBUG sinyalini filtrelemek**zorundasınız.**! Starship, DEBUG filtrelemesinin ardından bazı değerleri içerisinde barındırabilir ancak filtreleme işlemi starship başlatıldıktan sonra yazılırsa bazı fonksiyonlar devre dışı kalabilir.
```bash ```bash
function blastoff(){ function blastoff(){

View File

@ -197,16 +197,16 @@ This is the list of prompt-wide configuration options.
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | | `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| Variable | Description | | Variable | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `stil` | `'bold #75AADB'` | The style for the module. |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### Variables
| Variable | Example | Description |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables ### Variables
| Variable | Example | Description | | Variable | Example | Description |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. The module will be shown if
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options ### Options
| Option | Default | Description | | Option | Default | Description |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Variables ### Variables
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Example ### Example
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/tr-TR">Website</a> <a href="https://starship.rs">Website</a>
· ·
<a href="#🚀-installation">Kurulum</a> <a href="#🚀-installation">Kurulum</a>
· ·
<a href="https://starship.rs/tr-TR/config/">Yapılandırma</a> <a href="https://starship.rs/config/">Yapılandırma</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Kolay:** hızlı kurulum -  dakikalar içinde kullanmaya başla. - **Kolay:** hızlı kurulum -  dakikalar içinde kullanmaya başla.
<p align="center"> <p align="center">
<a href="https://starship.rs/tr-TR/config/"><strong>Starship dokümantasyonunu incele &nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Starship dokümantasyonunu incele &nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Lütfen starship'in oluşmasında ilham kaynağı olan çalışmalara da göz at
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. 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**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship roket simgesi"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship roket simgesi">

View File

@ -5,7 +5,7 @@ Starship'i kurmak için, 2 şeye ihtiyacınız var:
1. **Starship** binary dosyalarını bilgisayarınıza alın 1. **Starship** binary dosyalarını bilgisayarınıza alın
1. Kabuğunuza Starship binary scriptini kullanmasını söyleyin 1. Kabuğunuza Starship binary scriptini kullanmasını söyleyin
Çoğu kullanıcı için, [ana sayfadaki](../guide/#🚀-installation) talimatlar gayet iyi çalışacaktır. Fakat, bazı özel platformlar için, farklı talimatlara ihtiyaç vardır. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. Fakat, bazı özel platformlar için, farklı talimatlara ihtiyaç vardır.
Birçok platform var ki ana sisteme uymuyorlar. README.md belgesi ile diğer platformlar için bazı kurulum talimatları. Seninki burada değil mi? Anlarsan lütfen buraya ekle! Birçok platform var ki ana sisteme uymuyorlar. README.md belgesi ile diğer platformlar için bazı kurulum talimatları. Seninki burada değil mi? Anlarsan lütfen buraya ekle!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки! tagline: Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки!
actions: actions:
- theme: brand -
theme: brand
text: Початок роботи → text: Початок роботи →
link: ./guide/ link: ./guide/
features: features:
- -
title: Сумісність на першому місці title: Сумісність на першому місці
details: Працює з більшістю оболонок у всіх популярних операційних системах. Можна використовувати будь-де! details: Працює з більшістю оболонок у всіх популярних операційних системах. Можна використовувати будь-де!
- -
title: Rust під капотом title: Rust під капотом
details: Використовує найкращу в класі швидкість та безпеку застосунків створених за допомогою Rust, що робить ваш командний рядок швидким та надійним. details: Використовує найкращу в класі швидкість та безпеку застосунків створених за допомогою Rust, що робить ваш командний рядок швидким та надійним.
- -
title: Персоналізація title: Персоналізація
details: Кожна дрібничка налаштовується відповідно до ваших потреб, щоб зробити командний рядок аскетичним чи багатофункціональним, таким, яким ви б хотіли б його бачити. details: Кожна дрібничка налаштовується відповідно до ваших потреб, щоб зробити командний рядок аскетичним чи багатофункціональним, таким, яким ви б хотіли б його бачити.
footer: Ліцензія ISC | Авторське право © 2019-по сьогодні Учасники Starship footer: Ліцензія ISC | Авторське право © 2019-по сьогодні Учасники Starship
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки! Показує потрібну інформацію залишаючись блискучим та мінімальним. Швидке встановлення доступне для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd і PowerShell. description: Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки! Показує потрібну інформацію залишаючись блискучим та мінімальним. Швидке встановлення доступне для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd і PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Вимоги ### Вимоги
@ -58,6 +57,7 @@ description: Простий, супер швидкий та безмежно а
```sh ```sh
brew install starship brew install starship
``` ```
[Winget](https://github.com/microsoft/winget-cli): [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Простий, супер швидкий та безмежно а
::: :::
Додайте наступне в кінець вашого файлу env (його можна знайти за допомогою змінної `$nu.env-path` в Nushell): Додайте наступне в кінець вашого файлу env (його можна знайти за допомогою змінної `$nu.env-path` в Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
Деякі оболонки підтримують вивід командного рядка праворуч. Starship може встановити вміст правої частини командного рядка за допомогою параметра `right_format`. Будь-який модуль, який можна використовувати у `format`, також підтримується у `right_format`. Змінна `$all` міститиме лише модулі, які явно не використовується, а ні в `format`, а ні в `right_format`. Деякі оболонки підтримують вивід командного рядка праворуч. Starship може встановити вміст правої частини командного рядка за допомогою параметра `right_format`. Будь-який модуль, який можна використовувати у `format`, також підтримується у `right_format`. Змінна `$all` міститиме лише модулі, які явно не використовується, а ні в `format`, а ні в `right_format`.
Примітка: командний рядок праворуч – це один рядок, що знаходиться праворуч у рядку вводу. Щоб вирівняти модулі праворуч над рядком введення в багаторядковому запиті, перегляньте модуль [`fill`](../config/#fill). Примітка: командний рядок праворуч – це один рядок, що знаходиться праворуч у рядку вводу. Щоб вирівняти модулі праворуч над рядком введення в багаторядковому запиті, перегляньте [модуль `fill`](../config/#fill).
`right_format` наразі підтримується для таких оболонок: elvish, fish, zsh, xonsh, cmd, nushell, bash. `right_format` наразі підтримується для таких оболонок: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -200,12 +200,12 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
| Параметр | Стандартно | Опис | | Параметр | Стандартно | Опис |
| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Налаштовує формат командного рядка. | | `format` | [link](#default-prompt-format) | Налаштовує формат командного рядка. |
| `right_format` | `''` | Див [Увімкнути командний рядок праворуч](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | Дивіться [Увімкнути вивід праворуч](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Тайм-аут для сканування файлів (у мілісекундах). | | `scan_timeout` | `30` | Тайм-аут для сканування файлів (у мілісекундах). |
| `command_timeout` | `500` | Тайм-аут для команд, виконаних starship (у мілісекундах). | | `command_timeout` | `500` | Тайм-аут для команд, виконаних starship (у мілісекундах). |
| `add_newline` | `true` | Вставити порожній рядок між командними рядками в оболонці. | | `add_newline` | `true` | Вставити порожній рядок між командними рядками в оболонці. |
| `palette` | `''` | Встановлює кольорову палітру використовуючи `palettes`. | | `palette` | `''` | Встановлює кольорову палітру використовуючи `palettes`. |
| `palettes` | `{}` | Колекція кольорових палітр, для призначення [кольорів](../advanced-config/#style-strings) до назв визначених користувачем. Зверніть увагу, що кольорові палітри не можуть посилатися на їх власні визначення кольору. | | `palettes` | `{}` | Колекція колірних палітр, для призначення [кольорів](../advanced-config/#style-strings) до назв визначених користувачем. Зверніть увагу, що кольорові палітри не можуть посилатися на їх власні визначення кольору. |
| `follow_symlinks` | `true` | Перевіряти символічні посилання чи вони посилаються на теки; використовується в таких модулях як git. | | `follow_symlinks` | `true` | Перевіряти символічні посилання чи вони посилаються на теки; використовується в таких модулях як git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| Змінна | Опис | | Змінна | Опис |
| -------------- | --------------------------------------------------------------------------------------------------- | | -------------- | --------------------------------------------------------------------------------------------------- |
| `all_status` | Скорочення для `$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Скорочення для `$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Показує `diverged`, `ahead`, `behind` чи `up_to_date` в залежності від поточного стану репозиторію. | | `ahead_behind` | Показує `diverged`, `ahead`, `behind` чи `up_to_date` в залежності від поточного стану репозиторію. |
| `conflicted` | Показує `conflicted`, коли поточна гілка має конфлікт злиття. | | `conflicted` | Показує `conflicted`, коли поточна гілка має конфлікт злиття. |
| `untracked` | Показує `untracked` коли в робочій теці є файли що ще не включені до відстеження у репозиторії. | | `untracked` | Показує `untracked` коли в робочій теці є файли що ще не включені до відстеження у репозиторії. |
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Показувати версію python з venv.
# Типово, модуль показується, якщо виконується будь-яка з наступних умов:
# Зауважте, що це працюватиме лише тоді, коли venv знаходиться всередині проєкту, і він працюватиме
# лише в теці, яка містить теку venv, якщо це нормально? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Параметри
| Параметр | Стандартно | Опис |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Стиль модуля. |
| `detect_extensions` | `['.qmd']` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `['_quarto.yml']` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
| `disabled` | `false` | Disables the `quarto` module. |
### Змінні
| Змінна | Приклад | Опис |
| --------- | --------- | ---------------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Віддзеркалює значення параметра `symbol` |
| style\* | | Віддзеркалює значення параметра `style` |
*: Ця змінна може бути використана лише як частина стилю рядка
## R ## R
@ -3584,11 +3606,12 @@ Starship отримує поточну версію Ruby командою `ruby
### Змінні ### Змінні
| Змінна | Приклад | Опис | | Змінна | Приклад | Опис |
| --------- | -------- | ---------------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | Версія `ruby` | | version | `v2.5.1` | Версія `ruby` |
| symbol | | Віддзеркалює значення параметра `symbol` | | symbol | | Віддзеркалює значення параметра `symbol` |
| style\* | | Віддзеркалює значення параметра `style` | | style\* | | Віддзеркалює значення параметра `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Ця змінна може бути використана лише як частина стилю рядка *: Ця змінна може бути використана лише як частина стилю рядка
@ -4183,6 +4206,7 @@ time_range = '10:00:00-14:00:00'
- Поточний користувач не є таким же, як той, який увійшов до системи - Поточний користувач не є таким же, як той, який увійшов до системи
- Користувач зараз підключений через SSH - Користувач зараз підключений через SSH
- Змінна `show_always` встановлена в true - Змінна `show_always` встановлена в true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ time_range = '10:00:00-14:00:00'
### Параметри ### Параметри
| Параметр | Стандартно | Опис | | Параметр | Стандартно | Опис |
| ------------- | ----------------------- | ---------------------------------------------------------- | | ----------------- | ----------------------- | ---------------------------------------------------------- |
| `style_root` | `'bold red'` | Стиль, який використовується коли користувач є root/admin. | | `style_root` | `'bold red'` | Стиль, який використовується коли користувач є root/admin. |
| `style_user` | `'bold yellow'` | Стиль для звичайних користувачів. | | `style_user` | `'bold yellow'` | Стиль для звичайних користувачів. |
| `format` | `'[$user]($style) in '` | Формат модуля. | | `detect_env_vars` | `[]` | Які змінні середовища повинні запускати цей модуль. |
| `show_always` | `false` | Завжди показувати модуль `username`. | | `format` | `'[$user]($style) in '` | Формат модуля. |
| `disabled` | `false` | Вимикає модуль `username`. | | `show_always` | `false` | Завжди показувати модуль `username`. |
| `disabled` | `false` | Вимикає модуль `username`. |
### Змінні ### Змінні
@ -4209,6 +4234,8 @@ time_range = '10:00:00-14:00:00'
### Приклад ### Приклад
#### Завжди показувати hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Приховувати hostname для віддалених сеансів tmux
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
Модуль `vagrant` показує поточну встановлену версію [Vagrant](https://www.vagrantup.com/). Типово, модуль показується, якщо виконується будь-яка з наступних умов: Модуль `vagrant` показує поточну встановлену версію [Vagrant](https://www.vagrantup.com/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:

View File

@ -58,7 +58,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
## Чому я бачу попередження `Executing command "..." timed out.`? ## Чому я бачу попередження `Executing command "..." timed out.`?
Starship виконує різні команди, щоб отримати інформацію для показу в командному рядку, наприклад версію програми або поточного статусу git. Щоб переконатися, що starship не підвис, намагаючись виконати ці команди, ми встановлюємо ліміт, якщо виконання команди займе більше часу, starship зупинить виконання команди та видасть попередження, це очікувана поведінка. Цей ліміт часу можна налаштувати за допомогою [ ключа `command_timeout`](../config/#prompt), так що, якщо ви хочете, ви можете збільшити ліміт часу. Ви можете також виконати дії для відлагодження, щоб побачити, яка команда є повільною і подивитися, чи ви можете її оптимізувати. Нарешті ви можете встановити `STARSHIP_LOG` у `error`, щоб приховати ці попередження. Starship виконує різні команди, щоб отримати інформацію для показу в командному рядку, наприклад версію програми або поточного статусу git. Щоб переконатися, що starship не підвис, намагаючись виконати ці команди, ми встановлюємо ліміт, якщо виконання команди займе більше часу, starship зупинить виконання команди та видасть попередження, це очікувана поведінка. Цей ліміт часу можна налаштувати за допомогою [ключа `command_timeout`](../config/#prompt), так що, якщо ви хочете, ви можете збільшити ліміт часу. Ви можете також виконати дії для відлагодження, щоб побачити, яка команда є повільною і подивитися, чи ви можете її оптимізувати. Нарешті ви можете встановити `STARSHIP_LOG` у `error`, щоб приховати ці попередження.
## Я бачу якісь символи, але не розумію, що вони значать? ## Я бачу якісь символи, але не розумію, що вони значать?

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/uk-UA">Вебсайт</a> <a href="https://starship.rs">Вебсайт</a>
· ·
<a href="#🚀-installation">Встановлення</a> <a href="#🚀-installation">Встановлення</a>
· ·
<a href="https://starship.rs/uk-UA/config/">Налаштування</a> <a href="https://starship.rs/config/">Налаштування</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Простий:** швидка інсталяція дозволяє почати роботу за лічені хвилини. - **Простий:** швидка інсталяція дозволяє почати роботу за лічені хвилини.
<p align="center"> <p align="center">
<a href="https://starship.rs/uk-UA/config/"><strong>Ознайомтесь з документацією Starship &nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Ознайомтесь з документацією Starship &nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ eval "$(starship init zsh)"
Підтримайте цей проєкт [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт. Підтримайте цей проєкт [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.
**Підтримувачі**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: Nhỏ gọn, cực nhanh, và khả năng tuỳ chỉnh vô hạn prompt cho bất kì shell nào! tagline: Nhỏ gọn, cực nhanh, và khả năng tuỳ chỉnh vô hạn prompt cho bất kì shell nào!
actions: actions:
- theme: brand -
theme: brand
text: Bắt đầu → text: Bắt đầu →
link: ./guide/ link: ./guide/
features: features:
- -
title: Khả năng tương thích title: Khả năng tương thích
details: Những công việc trên đa số các shell phổ biến trên đa số các hệ điều hành phổ biến. Sử dụng nó ở mọi nơi! details: Những công việc trên đa số các shell phổ biến trên đa số các hệ điều hành phổ biến. Sử dụng nó ở mọi nơi!
- -
title: Sức mạnh của Rust title: Sức mạnh của Rust
details: Mang lại tốc độ và độ an toàn tốt nhất của Rust, giúp prompt của bạn thực thi nhanh chóng và đáng tin cậy nhất có thể. details: Mang lại tốc độ và độ an toàn tốt nhất của Rust, giúp prompt của bạn thực thi nhanh chóng và đáng tin cậy nhất có thể.
- -
title: Khả năng tuỳ biến title: Khả năng tuỳ biến
details: Mọi chi tiết nhỏ được tuỳ biến theo ý thích của bạn, giúp prompt này nhỏ nhất có thể hoặc phong phú về tính năng như bạn muốn. details: Mọi chi tiết nhỏ được tuỳ biến theo ý thích của bạn, giúp prompt này nhỏ nhất có thể hoặc phong phú về tính năng như bạn muốn.
footer: Cấp phép bởi ISC | Bản quyền © 2019-nay Starship Contributors footer: Cấp phép bởi ISC | Bản quyền © 2019-nay Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship: Cross-Shell Prompt"
description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biến mạnh mẽ cho bất kì shell nào! Hiển thị thông tin bạn cần, trong khi vẫn giữ cho đẹp và nhỏ gọn. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biến mạnh mẽ cho bất kì shell nào! Hiển thị thông tin bạn cần, trong khi vẫn giữ cho đẹp và nhỏ gọn. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### Yêu cầu ### Yêu cầu
@ -58,6 +57,7 @@ description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biế
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biế
::: :::
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): 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 ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -158,7 +158,7 @@ Ví dụ:
#### Các chuỗi kiểu #### Các chuỗi kiểu
Đa số các module trong starship cho phép bạn cấu hình kiểu hiển thị của chúng. This is done with an entry (thường được gọi là `kiểu`) cái là một cuỗi cấu hình đặc biệt. Đây là vài ví dụ của các chuỗi kiểu cũng với những gì chúng làm. Cú pháp chi tiết đầy đủ, tham khảo [hướng dẫn cấu hình nâng cao](../advanced-config/). Đa số các module trong starship cho phép bạn cấu hình kiểu hiển thị của chúng. This is done with an entry (thường được gọi là `kiểu`) cái là một cuỗi cấu hình đặc biệt. Đây là vài ví dụ của các chuỗi kiểu cũng với những gì chúng làm. For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ Cái này là danh sách các tuỳ chọn cho cấu hình prompt-wide.
### Các tuỳ chọn ### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả | | Tuỳ chọn | Mặc định | Mô tả |
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Cấu hình định dạng của prompt. | | `format` | [link](#default-prompt-format) | Cấu hình định dạng của prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout của starship cho việc quét các tập tin (tính theo milliseconds). | | `scan_timeout` | `30` | Timeout của starship cho việc quét các tập tin (tính theo milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Chèn dòng trắng giữa các dấu nhắc lệnh. | | `add_newline` | `true` | Chèn dòng trắng giữa các dấu nhắc lệnh. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ Các biến dưới đây có thể được sử dụng trong `format`:
| Biến | Mô tả | | Biến | Mô tả |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut cho `$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Hiển thị `conflicted` khi nhánh này có merge conflicts. | | `conflicted` | Hiển thị `conflicted` khi nhánh này có merge conflicts. |
| `untracked` | Hiển thị `untracked` khi có tệp tin untracked trong thư mục làm việc. | | `untracked` | Hiển thị `untracked` khi có tệp tin untracked trong thư mục làm việc. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn: By default, the module will be shown if any of the following conditions are met:
- The current directory contains a `.python-version` file - The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file - The current directory contains a `Pipfile` file
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | Kiểu cho module. |
| `detect_extensions` | `['.qmd']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `['_quarto.yml']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
| `disabled` | `false` | Disables the `quarto` module. |
### Các biến
| Biến | Ví dụ | Mô tả |
| --------- | --------- | -------------------------------- |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
*: Biến này có thể chỉ được sử dụng như một phần của style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### Các biến ### Các biến
| Biến | Ví dụ | Mô tả | | Biến | Ví dụ | Mô tả |
| --------- | -------- | -------------------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` | | symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` | | style\* | | Giá trị ghi đè của `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: Biến này có thể chỉ được sử dụng như một phần của style string *: Biến này có thể chỉ được sử dụng như một phần của style string
@ -4183,6 +4206,7 @@ The `username` module shows active user's username. Module cho sẽ được hi
- The current user isn't the same as the one that is logged in - The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session - The user is currently connected as an SSH session
- The variable `show_always` is set to true - The variable `show_always` is set to true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Các tuỳ chọn ### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả | | Tuỳ chọn | Mặc định | Mô tả |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | The style used for non-root users. | | `style_user` | `'bold yellow'` | The style used for non-root users. |
| `format` | `'[$user]($style) in '` | Định dạng cho module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | Always shows the `username` module. | | `format` | `'[$user]($style) in '` | Định dạng cho module. |
| `disabled` | `false` | Disables the `username` module. | | `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
### Các biến ### Các biến
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Ví dụ ### Ví dụ
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/vi-VN">Website</a> <a href="https://starship.rs">Website</a>
· ·
<a href="#🚀-installation">Cài đặt</a> <a href="#🚀-installation">Cài đặt</a>
· ·
<a href="https://starship.rs/vi-VN/config/">Cấu hình</a> <a href="https://starship.rs/config/">Cấu hình</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **Dễ dàng:** cài đặt nhanh chóng  bắt đầu sử dụng nó trong vài phút. - **Dễ dàng:** cài đặt nhanh chóng  bắt đầu sử dụng nó trong vài phút.
<p align="center"> <p align="center">
<a href="https://starship.rs/vi-VN/config/"><strong>Khám phá tài liệu của Starship&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>Khám phá tài liệu của Starship&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ Xin hãy xem qua những công việc này trước đây, những thứ đã gi
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ọ. 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ọ.
**Nhà tài trợ ủng hộ**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -5,7 +5,7 @@
1. Lấy tệp tin **starship** nhị phân về máy tính của bạn 1. Lấy tệp tin **starship** nhị phân về máy tính của bạn
1. Nói với shell của bạn để sử dụng tệp tin starship nhị phân như là prompt của nó bằng việc chỉnh sửa những đoạn mã khởi tạo của nó 1. Nói với shell của bạn để sử dụng tệp tin starship nhị phân như là prompt của nó bằng việc chỉnh sửa những đoạn mã khởi tạo của nó
Đối với đa số người dùng, các hướng dẫn trên [trang chính](../guide/#🚀-installation) sẽ làm việc tốt. Tuy nhiên, với một vài nền tảng đặc biệt hơn, các hướng dẫn khác nhau là cần thiết. For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. Tuy nhiên, với một vài nền tảng đặc biệt hơn, các hướng dẫn khác nhau là cần thiết.
Có rất nhiều nền tảng bên ngoài, rằng chúng đã không khớp như trong tệp tin README.md, do đó đây là vài hướng dẫn cài đặt cho những nền tảng khác đến từ cộng đồng. Của bạn không có ở đây? Xin hãy thêm nó vào đây nếu bạn tìm ra nó! Có rất nhiều nền tảng bên ngoài, rằng chúng đã không khớp như trong tệp tin README.md, do đó đây là vài hướng dẫn cài đặt cho những nền tảng khác đến từ cộng đồng. Của bạn không có ở đây? Xin hãy thêm nó vào đây nếu bạn tìm ra nó!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: 轻量、迅速、客制化的高颜值终端! tagline: 轻量、迅速、客制化的高颜值终端!
actions: actions:
- theme: brand -
theme: brand
text: 快速上手 → text: 快速上手 →
link: ./guide/ link: ./guide/
features: features:
- -
title: 兼容性优先 title: 兼容性优先
details: Starship 可以在常见的操作系统和 shell 上运行。 尝试着在各种地方使用它吧! details: Starship 可以在常见的操作系统和 shell 上运行。 尝试着在各种地方使用它吧!
- -
title: 基于 Rust title: 基于 Rust
details: Rust 特有的的速度与安全性,让你的提示尽可能的快速可靠。 details: Rust 特有的的速度与安全性,让你的提示尽可能的快速可靠。
- -
title: 客制化 title: 客制化
details: 每个小细节都可以按您喜欢的客制化,不论是最小化以求速度,还是更大以获得最完善的功能。 details: 每个小细节都可以按您喜欢的客制化,不论是最小化以求速度,还是更大以获得最完善的功能。
footer: ISC 许可 | 版权所有 © 2019至今 - Starship 贡献者 footer: ISC 许可 | 版权所有 © 2019至今 - Starship 贡献者
@ -24,12 +25,10 @@ metaTitle: "Starship可用于各种 Shell 的提示符"
description: Starship是一款轻量、迅速、可客制化的高颜值终端 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。 description: Starship是一款轻量、迅速、可客制化的高颜值终端 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### 前置要求 ### 前置要求
@ -58,6 +57,7 @@ description: Starship是一款轻量、迅速、可客制化的高颜值终端
```sh ```sh
brew install starship brew install starship
``` ```
使用 [ Winget](https://github.com/microsoft/winget-cli) 使用 [ Winget](https://github.com/microsoft/winget-cli)
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship是一款轻量、迅速、可客制化的高颜值终端
::: :::
在您的 Nushell 环境文件的最后(使用 `$nu.env-path` 来获取它的路径),添加以下内容: 在您的 Nushell 环境文件的最后(使用 `$nu.env-path` 来获取它的路径),添加以下内容:
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -223,7 +223,7 @@ Invoke-Expression (&starship init powershell)
一些 Shell 支持右侧提示, 它与输入区渲染在同一行。 使用 `right_format` 选项来设置 Starship 的右侧提示。 所有支持 `format` 的组件也同时支持 `right_format`。 未显式在 `format``right_format` 中使用的组件,会保存在变量 `$all` 中。 一些 Shell 支持右侧提示, 它与输入区渲染在同一行。 使用 `right_format` 选项来设置 Starship 的右侧提示。 所有支持 `format` 的组件也同时支持 `right_format`。 未显式在 `format``right_format` 中使用的组件,会保存在变量 `$all` 中。
注意:右侧提示和输入区显示在同一行。 如果需要在输入区的上方显示右对齐的组件,请查阅 [`fill` 组件](../config/#fill)。 注意:右侧提示和输入区显示在同一行。 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, nushell, bash. `right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.

View File

@ -17,7 +17,7 @@ add_newline = true
# 将提示符中的 '' 替换为 '➜' # 将提示符中的 '' 替换为 '➜'
[character] # 此组件名称为 'character' [character] # 此组件名称为 'character'
success_symbol = '[➜](bold green)' # 将 'success_symbol' 字段设置成颜色为 'bold green' 的 '➜' success_symbol = '[➜](bold green)' # 将 'success_symbol' 字段设置成颜色为 'bold green' 的 '➜'
# 禁用 'package' 组件,将其隐藏 # 禁用 'package' 组件,将其隐藏
[package] [package]
@ -158,7 +158,7 @@ line2
#### 样式字符串 #### 样式字符串
Starship 中的大多数组件允许您为其设置显示样式。 显示样式可以通过一个字符串字段(一般是 `style`)来设置。 以下的例子给出了一些样式字符串并描述了它们的效果。 样式字符串的完整语法请查阅 [高级配置指南](../advanced-config/)。 Starship 中的大多数组件允许您为其设置显示样式。 显示样式可以通过一个字符串字段(一般是 `style`)来设置。 以下的例子给出了一些样式字符串并描述了它们的效果。 For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
### 配置项 ### 配置项
| 选项 | 默认值 | 描述 | | 选项 | 默认值 | 描述 |
| ----------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [见下文](#default-prompt-format) | 配置提示符的格式。 | | `format` | [见下文](#default-prompt-format) | 配置提示符的格式。 |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 | | `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 |
| `command_timeout` | `500` | Startship 执行命令的超时时间(单位:毫秒)。 | | `command_timeout` | `500` | Startship 执行命令的超时时间(单位:毫秒)。 |
| `add_newline` | `true` | 在 shell 提示符之间插入空行。 | | `add_newline` | `true` | 在 shell 提示符之间插入空行。 |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| 字段 | 描述 | | 字段 | 描述 |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
如果`pyenv_version_name`被设置为`true`, 本组件将会展示pyenv版本名。 否则则显示通过`python --version`获得的版本号 如果`pyenv_version_name`被设置为`true`, 本组件将会展示pyenv版本名。 否则则显示通过`python --version`获得的版本号
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- 当前目录包含 `.python-version` 文件 - 当前目录包含 `.python-version` 文件
- 当前目录包含 `Pipfile` 文件 - 当前目录包含 `Pipfile` 文件
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### 配置项
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------------ | ------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor``patch` |
| `符号` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | 此组件的样式。 |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | 哪些文件应触发此组件 |
| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
| `disabled` | `false` | Disables the `quarto` module. |
### 变量
| 字段 | 示例 | 描述 |
| --------- | --------- | ----------------------- |
| version | `1.4.549` | The version of `quarto` |
| 符号 | | `symbol`对应值 |
| style\* | | `style`对应值 |
*: 此变量只能作为样式字符串的一部分使用
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### 变量 ### 变量
| 字段 | 示例 | 描述 | | 字段 | 示例 | 描述 |
| --------- | -------- | --------------------- | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| 符号 | | `symbol`对应值 | | 符号 | | `symbol`对应值 |
| style\* | | `style`对应值 | | style\* | | `style`对应值 |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: 此变量只能作为样式字符串的一部分使用 *: 此变量只能作为样式字符串的一部分使用
@ -4183,6 +4206,7 @@ By default, the module will be shown if any of the following conditions are met:
- 当前用户与登录用户不相同 - 当前用户与登录用户不相同
- 用户正通过 SSH 会话连接访问 - 用户正通过 SSH 会话连接访问
- 字段 `show_always` 被设置为 true - 字段 `show_always` 被设置为 true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 配置项 ### 配置项
| 选项 | 默认值 | 描述 | | 选项 | 默认值 | 描述 |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | 非 root 用户使用的样式。 | | `style_user` | `'bold yellow'` | 非 root 用户使用的样式。 |
| `format` | `'[$user]($style) in '` | 组件格式化模板。 | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | 总是显示 `username` 组件。 | | `format` | `'[$user]($style) in '` | 组件格式化模板。 |
| `disabled` | `false` | 禁用 `username` 组件。 | | `show_always` | `false` | 总是显示 `username` 组件。 |
| `disabled` | `false` | 禁用 `username` 组件。 |
### 变量 ### 变量
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 示例 ### 示例
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/zh-CN">网站</a> <a href="https://starship.rs">网站</a>
· ·
<a href="#🚀-installation">安装</a> <a href="#🚀-installation">安装</a>
· ·
<a href="https://starship.rs/zh-CN/config/">配置</a> <a href="https://starship.rs/config/">配置</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **易用:** 安装快速 —— 几分钟就可上手。 - **易用:** 安装快速 —— 几分钟就可上手。
<p align="center"> <p align="center">
<a href="https://starship.rs/zh-CN/config/"><strong>探索 Starship 文档</strong></a> <a href="https://starship.rs/config/"><strong>探索 Starship 文档</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ eval "$(starship init zsh)"
通过 [成为赞助商 ](https://github.com/sponsors/starship)来支持这个项目。 您的名字或 LOGO 将在此处显示,并链接到您的网站。 通过 [成为赞助商 ](https://github.com/sponsors/starship)来支持这个项目。 您的名字或 LOGO 将在此处显示,并链接到您的网站。
**支持者级别**
- [Appwrite](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship 图标"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship 图标">

View File

@ -5,7 +5,7 @@
1. 下载 **Starship** 的可执行文件 1. 下载 **Starship** 的可执行文件
1. 修改 shell 的初始化脚本,将 Starship 设置为命令提示符 1. 修改 shell 的初始化脚本,将 Starship 设置为命令提示符
大部分用户按照[主页](../guide/#🚀-installation)上的步骤安装即可, 但有一些特殊系统上的安装步骤不同。 For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. 但有一些特殊系统上的安装步骤不同。
现有平台众多README 中无法全部展示,所以这里是社区中对其他平台 的一些安装说明。 找不到你的平台? 如果你知道怎么安装,请添加到这里! 现有平台众多README 中无法全部展示,所以这里是社区中对其他平台 的一些安装说明。 找不到你的平台? 如果你知道怎么安装,请添加到这里!

View File

@ -2,20 +2,21 @@
layout: home layout: home
hero: hero:
image: /logo.svg image: /logo.svg
text: null text:
tagline: 適合任何 shell 的最小、極速、無限客製化的提示字元! tagline: 適合任何 shell 的最小、極速、無限客製化的提示字元!
actions: actions:
- theme: brand -
theme: brand
text: 馬上開始 → text: 馬上開始 →
link: ./guide/ link: ./guide/
features: features:
- -
title: 相容性優先 title: 相容性優先
details: 能夠在最常見的作業系統之中最常見的 shell 上運作。 在各處使用它吧! details: 能夠在最常見的作業系統之中最常見的 shell 上運作。 在各處使用它吧!
- -
title: 以 Rust 開發 title: 以 Rust 開發
details: 帶來同類中最快的速度以及 Rust 的安全性,讓你的提示字元盡可能快速與可靠。 details: 帶來同類中最快的速度以及 Rust 的安全性,讓你的提示字元盡可能快速與可靠。
- -
title: 可客製化 title: 可客製化
details: 任何些微的細節都可以隨你喜愛地客製化,讓你的提示字元可以隨你所欲地最小化或是充滿各種特色。 details: 任何些微的細節都可以隨你喜愛地客製化,讓你的提示字元可以隨你所欲地最小化或是充滿各種特色。
footer: ISC Licensed | Copyright © 2019-present Starship Contributors footer: ISC Licensed | Copyright © 2019-present Starship Contributors
@ -24,12 +25,10 @@ metaTitle: "Starship跨 Shell 提示字元"
description: Starship 是適合任何 shell 的最小、極速、高度客製化的提示字元! 顯示你需要的訊息,同時保持順暢與最小化。 Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. description: Starship 是適合任何 shell 的最小、極速、高度客製化的提示字元! 顯示你需要的訊息,同時保持順暢與最小化。 Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
--- ---
<div class="center"> <video class="demo-video" muted autoplay loop playsinline>
<video class="demo-video" muted autoplay loop playsinline> <source src="/demo.webm" type="video/webm">
<source src="/demo.webm" type="video/webm"> <source src="/demo.mp4" type="video/mp4">
<source src="/demo.mp4" type="video/mp4"> </video>
</video>
</div>
### 先決要求 ### 先決要求
@ -58,6 +57,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
```sh ```sh
brew install starship brew install starship
``` ```
With [Winget](https://github.com/microsoft/winget-cli): With [Winget](https://github.com/microsoft/winget-cli):
```powershell ```powershell
@ -157,6 +157,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
::: :::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell): Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh ```sh
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu

View File

@ -158,7 +158,7 @@ In the second part, which is enclosed in a `()`, is a [style string](#style-stri
#### 風格字串 #### 風格字串
Starship 內大多數的模組允許你設定他們的顯示風格。 這要透過一個條目 (通常叫做 `style`),這個條目使用一個字串來進行設定。 這裡給幾個風格字串的例子,以及這些字串的功用。 對於完整語法的詳細說明,請參照 [進階設定指南](../advanced-config/)。 Starship 內大多數的模組允許你設定他們的顯示風格。 這要透過一個條目 (通常叫做 `style`),這個條目使用一個字串來進行設定。 這裡給幾個風格字串的例子,以及這些字串的功用。 For details on the full syntax, consult the [advanced config guide](../advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background - `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background - `'bg:blue fg:bright-green'` sets bright green text on a blue background
@ -197,16 +197,16 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
### 選項 ### 選項
| 選項 | 預設 | 說明 | | 選項 | 預設 | 說明 |
| ----------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [連結](#default-prompt-format) | Configure the format of the prompt. | | `format` | [連結](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) | | `right_format` | `''` | See [Enable Right Prompt](../advanced-config/#enable-right-prompt) |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). | | `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. | | `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. | | `palette` | `''` | Sets which color palette from `palettes` to use. |
| `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. | | `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. |
| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. | | `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
::: tip ::: tip
@ -300,6 +300,7 @@ $php\
$pulumi\ $pulumi\
$purescript\ $purescript\
$python\ $python\
$quarto\
$raku\ $raku\
$rlang\ $rlang\
$red\ $red\
@ -1888,7 +1889,7 @@ The following variables can be used in `format`:
| 變數 | 說明 | | 變數 | 說明 |
| -------------- | ------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------- |
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` | | `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$typechanged$staged$untracked` |
| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. | | `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. | | `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
| `untracked` | Displays `untracked` when there are untracked files in the working directory. | | `untracked` | Displays `untracked` when there are untracked files in the working directory. |
@ -3356,7 +3357,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`. If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met: By default, the module will be shown if any of the following conditions are met:
- 目前資料夾中有一個 `.python-version` 檔案 - 目前資料夾中有一個 `.python-version` 檔案
- 目前資料夾中有一個 `Pipfile` 檔案 - 目前資料夾中有一個 `Pipfile` 檔案
@ -3428,16 +3429,37 @@ python_binary = 'python3'
detect_extensions = [] detect_extensions = []
``` ```
```toml ## Quarto
# ~/.config/starship.toml
[python] The `quarto` module shows the current installed version of Quarto used in a project.
# Display the version of python from inside a local venv.
# By default, the module will be shown if any of the following conditions are met:
# Note this will only work when the venv is inside the project and it will only
# work in the directory that contains the venv dir but maybe this is ok? - The current directory contains a `_quarto.yml` file
python_binary = ['./venv/bin/python', 'python', 'python3', 'python2'] - The current directory contains any `*.qmd` file
```
### 選項
| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'⨁ '` | A format string representing the symbol of Quarto |
| `style` | `'bold #75AADB'` | 這個模組的風格。 |
| `detect_extensions` | `['.qmd']` | Which extensions should trigger this module. |
| `detect_files` | `['_quarto.yml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `quarto` module. |
### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
| version | `1.4.549` | The version of `quarto` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
## R ## R
@ -3584,11 +3606,12 @@ Starship gets the current Ruby version by running `ruby -v`.
### 變數 ### 變數
| 變數 | 範例 | 說明 | | 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ | | --------- | -------- | ------------------------------------------- |
| version | `v2.5.1` | The version of `ruby` | | version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` | | symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` | | style\* | | Mirrors the value of option `style` |
| gemset | `test` | Optional, gets the current RVM gemset name. |
*: This variable can only be used as a part of a style string *: This variable can only be used as a part of a style string
@ -4183,6 +4206,7 @@ By default, the module will be shown if any of the following conditions are met:
- 目前使用者並非登入時的使用者 - 目前使用者並非登入時的使用者
- 使用者透過 SSH session 進行連線 - 使用者透過 SSH session 進行連線
- 變數 `show_always` 被設為 true - 變數 `show_always` 被設為 true
- The array `detect_env_vars` contains at least the name of one environment variable, that is set
::: tip ::: tip
@ -4192,13 +4216,14 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 選項 ### 選項
| 選項 | 預設 | 說明 | | 選項 | 預設 | 說明 |
| ------------- | ----------------------- | ------------------------------------------- | | ----------------- | ----------------------- | --------------------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. | | `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | 非 root 使用者時使用的風格。 | | `style_user` | `'bold yellow'` | 非 root 使用者時使用的風格。 |
| `format` | `'[$user]($style) in '` | The format for the module. | | `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
| `show_always` | `false` | 總是顯示 `username` 模組。 | | `format` | `'[$user]($style) in '` | The format for the module. |
| `disabled` | `false` | 停用 `username` 模組。 | | `show_always` | `false` | 總是顯示 `username` 模組。 |
| `disabled` | `false` | 停用 `username` 模組。 |
### 變數 ### 變數
@ -4209,6 +4234,8 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 範例 ### 範例
#### Always show the hostname
```toml ```toml
# ~/.config/starship.toml # ~/.config/starship.toml
@ -4220,6 +4247,17 @@ disabled = false
show_always = true show_always = true
``` ```
#### Hide the hostname in remote tmux sessions
```toml
# ~/.config/starship.toml
[hostname]
ssh_only = false
detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
disabled = false
```
## Vagrant ## Vagrant
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met: The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:

View File

@ -40,11 +40,11 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://starship.rs/zh-TW">網站</a> <a href="https://starship.rs">網站</a>
· ·
<a href="#🚀-installation">安裝</a> <a href="#🚀-installation">安裝</a>
· ·
<a href="https://starship.rs/zh-TW/config/">設定</a> <a href="https://starship.rs/config/">設定</a>
</p> </p>
<p align="center"> <p align="center">
@ -171,7 +171,7 @@
- **易用:**安裝快速 幾分鐘內即可開始使用。 - **易用:**安裝快速 幾分鐘內即可開始使用。
<p align="center"> <p align="center">
<a href="https://starship.rs/zh-TW/config/"><strong>探索 Starship 文件&nbsp;&nbsp;</strong></a> <a href="https://starship.rs/config/"><strong>探索 Starship 文件&nbsp;&nbsp;</strong></a>
</p> </p>
<a name="🚀-installation"></a> <a name="🚀-installation"></a>
@ -431,10 +431,6 @@ eval "$(starship init zsh)"
你可以[成爲一個贊助者](https://github.com/sponsors/starship)來支持這個專案! 你的名字和頭像會在這裏顯示,並且會帶有一個前往你網站的鏈接。 你可以[成爲一個贊助者](https://github.com/sponsors/starship)來支持這個專案! 你的名字和頭像會在這裏顯示,並且會帶有一個前往你網站的鏈接。
**贊助者等級**
- [後端](https://appwrite.io/)
<p align="center"> <p align="center">
<br> <br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon"> <img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">

View File

@ -5,7 +5,7 @@
1. 下載 **starship** 執行檔到你的電腦裡 1. 下載 **starship** 執行檔到你的電腦裡
1. 修改 shell 的初始化腳本,讓其使用 starship 作為提示字元 1. 修改 shell 的初始化腳本,讓其使用 starship 作為提示字元
對大部分的使用者來說,在[主頁面](../guide/#🚀-installation)的安裝指引皆足以正常運作。 然而,對於一些較特別的平台,我們需要不同的安裝指引。 For most users, the instructions on [the main page](../guide/#🚀-installation) will work great. 然而,對於一些較特別的平台,我們需要不同的安裝指引。
有太多平台不適用於主要的 README.md 檔案了,所以這裡有一些來自社群的其他平台的安裝指引。 你的平台不在這裡嗎? 如果你找出怎麼安裝,請幫我們加上你的指引! 有太多平台不適用於主要的 README.md 檔案了,所以這裡有一些來自社群的其他平台的安裝指引。 你的平台不在這裡嗎? 如果你找出怎麼安裝,請幫我們加上你的指引!