diff options
author | Matan Kushner <hello@matchai.dev> | 2024-02-24 17:49:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 09:49:00 +0100 |
commit | 3c063749076da50f39286888a3781cfdbee3eaf4 (patch) | |
tree | 0a402b3fd04715bed878a25804ceebf4ffd41b6f /docs/es-ES/advanced-config/README.md | |
parent | 5163dbad8d09ec77dedc906072b73623191c8c5d (diff) |
docs(i18n): new Crowdin updates (#5682)
* 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 nerd-font.md (Chinese Simplified)
* New translations tokyo-night.md (Chinese Simplified)
* New translations gruvbox-rainbow.md (Chinese Simplified)
* New translations readme.md (Chinese Simplified)
* 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 (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (Arabic)
* New translations readme.md (Arabic)
* New translations readme.md (Ukrainian)
* New translations readme.md (Spanish)
* 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 (Ukrainian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Spanish)
* 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 (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Ukrainian)
* New translations readme.md (Indonesian)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations gruvbox-rainbow.md (German)
Diffstat (limited to 'docs/es-ES/advanced-config/README.md')
-rw-r--r-- | docs/es-ES/advanced-config/README.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/es-ES/advanced-config/README.md b/docs/es-ES/advanced-config/README.md index 5fbe8ab3a..3944c29f6 100644 --- a/docs/es-ES/advanced-config/README.md +++ b/docs/es-ES/advanced-config/README.md @@ -80,6 +80,26 @@ starship init fish | source enable_transience ``` +## TransientPrompt and TransientRightPrompt in Bash + +The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. Esto es útil en los casos en que la información del prompt no es siempre necesaria. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=<value>`: + +The \<value\> here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored. + +Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right: + +- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do + +```bash +bleopt prompt_ps1_final="$(starship module character)" +``` + +- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. Por ejemplo, para mostrar la hora en la que se inició el último comando aquí, lo harías + +```bash +bleopt prompt_rps1_final="$(starship module time)" +``` + ## Comandos pre-prompt y pre-ejecución personalizados en Cmd Clink proporciona una API extremadamente flexible para ejecutar comandos pre-prompt y pre-ejecución en la shell de Cmd. Es bastante sencillo de usar con Starship. Haz los siguientes cambios a tu archivo `starship.lua` según tus requisitos: @@ -205,7 +225,9 @@ Algunos intérpretes de comandos soportan un prompt derecho que se renderiza en 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). -`right_format` está actualmente soportado para los siguientes intérpretes de comandos: elvish, fish, zsh, xonsh, cmd, nushell. +`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash. + +Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash. ### Ejemplo |