A aws-sso cli section for Spaceship prompt
Display your current AWS profile initiated though aws-sso cli.
You need to source this plugin somewhere in your dotfiles. Here's how to do it with some popular tools:
Execute this command to clone this repo into Oh-My-Zsh plugin's folder:
git clone https://github.com/norchen/spaceship-awssso.git $ZSH_CUSTOM/plugins/spaceship-awssso
Include spaceship-awssso
in Oh-My-Zsh plugins list:
plugins=($plugins spaceship-awssso)
zplug "spaceship-prompt/spaceship-awssso"
antigen bundle "spaceship-prompt/spaceship-awssso"
antibody bundle "spaceship-prompt/spaceship-awssso"
zinit light "spaceship-prompt/spaceship-awssso"
zgen load "spaceship-prompt/spaceship-awssso"
[plugins.spaceship-awssso]
github = "spaceship-prompt/spaceship-awssso"
If none of the above methods works for you, you can install Spaceship manually.
- Clone this repo somewhere, for example to
$HOME/.zsh/spaceship-awssso
. - Source this section in your
~/.zshrc
.
mkdir -p "$HOME/.zsh"
git clone --depth=1 https://github.com/spaceship-prompt/spaceship-awssso.git "$HOME/.zsh/spaceship-awssso"
For initializing prompt system add this to your .zshrc
:
source "~/.zsh/spaceship-awssso/spaceship-awssso.plugin.zsh"
After installing, add the following line to your .zshrc
in order to include Ember section in the prompt:
spaceship add foobar
This section is shown only in directories within a foobar context.
Variable | Default | Meaning |
---|---|---|
SPACESHIP_AWSSSO_SHOW |
true |
Show current section |
SPACESHIP_AWSSSO_PREFIX |
using |
Prefix before section |
SPACESHIP_AWSSSO_SUFFIX |
(sso) |
Suffix after section |
SPACESHIP_AWSSSO_SYMBOL |
😍· |
Character to be shown before version |
SPACESHIP_AWSSSO_COLOR |
216 |
Color of section (taken from here) |
First, thanks for your interest in contributing!
Contribute to this repo by submitting a pull request. Please use conventional commits, since this project adheres to semver and is automatically released via semantic-release.