diff options
Diffstat (limited to 'docs/vi-VN/config/README.md')
-rw-r--r-- | docs/vi-VN/config/README.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md index e75de9ff8..30473895a 100644 --- a/docs/vi-VN/config/README.md +++ b/docs/vi-VN/config/README.md @@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) " ## Biến môi trường -Mô đun `env_var` hiển thị giá trị hiện tại của biến môi trường được chọn. Mô đun sẽ được hiển thị chỉ khi bất kì điều kiện nào sau đây thỏa mãn: +The `env_var` module displays the current value of a selected environment variables. Mô đun sẽ được hiển thị chỉ khi bất kì điều kiện nào sau đây thỏa mãn: - Tùy chọn `variable` khớp với mootjj biến môi trường tồn tại - Tùy chọn `variable` không được định nghĩa, nhưng tùy chọn `default` là + +::: tip Multiple environmental variables can be displayed by using a `.`. (see example) If the `variable` configuration option is not set, the module will display value of variable under the name of text after the `.` character. + +Example: following configuration will display value of USER environment variable +```toml +# ~/.config/starship.toml + +[env_var.USER] +default = "unknown user" +``` + ### Các tuỳ chọn | Tuỳ chọn | Mặc định | Mô tả | @@ -955,6 +966,17 @@ variable = "SHELL" default = "unknown shell" ``` +Displaying multiple environmental variables: +```toml +# ~/.config/starship.toml + +[env_var.SHELL] +variable = "SHELL" +default = "unknown shell" +[env_var.USER] +default = "unknown user" +``` + ## Erlang The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). 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: |