Compare commits

...

3 Commits

Author SHA1 Message Date
3w36zj6 d406ad3dbb
Merge 59ff7f8bef into 3e2053a934 2025-01-07 23:59:11 +01:00
Seyed Sajjad (Sina) Tak Tehrani 3e2053a934
fix(prompt): add support for AWS_SSO_PROFILE in AWS segment initialization (#2813)
- Updated `_p9k_prompt_aws_init` to include `AWS_SSO_PROFILE` in the condition for activating the AWS segment.
- Ensures compatibility with AWS SSO profiles in addition to other AWS environment variables.
2025-01-06 03:24:25 -08:00
3w36zj6 59ff7f8bef docs: add Sheldon to Installation in README 2024-08-15 06:34:14 +09:00
2 changed files with 17 additions and 1 deletions

View File

@ -431,6 +431,7 @@ Powerlevel10k.
- [Arch Linux](#arch-linux)
- [Alpine Linux](#alpine-linux)
- [Fig](#fig)
- [Sheldon](#sheldon)
### Manual
@ -549,6 +550,21 @@ ln -s /usr/share/zsh/plugins/powerlevel10k ~/.local/share/zsh/plugins/
Follow the instructions on
[this page](https://fig.io/plugins/other/powerlevel10k).
### Sheldon
Add the following to the Sheldon config file.
```toml
[plugins.powerlevel10k]
github = "romkatv/powerlevel10k"
```
Or run the following to automatically add it.
```zsh
sheldon add powerlevel10k --github romkatv/powerlevel10k
```
## Configuration
- [For new users](#for-new-users)

View File

@ -1206,7 +1206,7 @@ prompt_aws() {
}
_p9k_prompt_aws_init() {
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}'
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${AWS_SSO_PROFILE:-${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}}'
}
################################################################