Skip to content

norchen/spaceship-awssso

 
 

Repository files navigation

☁️ + 🚀
Spaceship AWS-SSO

A aws-sso cli section for Spaceship prompt

GitHub Release GitHub Workflow Status Spaceship Twitter Chat on Discord

Display your current AWS profile initiated though aws-sso cli.

Installing

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"

Manual

If none of the above methods works for you, you can install Spaceship manually.

  1. Clone this repo somewhere, for example to $HOME/.zsh/spaceship-awssso.
  2. Source this section in your ~/.zshrc.

Example

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"

Usage

After installing, add the following line to your .zshrc in order to include Ember section in the prompt:

spaceship add foobar

Options

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)

Contributing

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.

License

MIT © Nora Schöner 🩷 Wolkencode

About

Show aws-sso profile with spaceship

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%