GithubHelp home page GithubHelp logo

blimmer / zsh-aws-vault Goto Github PK

View Code? Open in Web Editor NEW
83.0 3.0 22.0 34 KB

oh-my-zsh plugin for aws-vault

License: MIT License

Shell 100.00%
oh-my-zsh oh-my-zsh-plugin aws-vault zsh-plugin zsh prompt

zsh-aws-vault's People

Contributors

bhb603 avatar blimmer avatar deiga avatar farhansaed avatar hlascelles avatar janost avatar kevinduterne avatar nbrys avatar onyxraven avatar reegnz avatar thameezb avatar unixorn avatar vvdaal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zsh-aws-vault's Issues

Remove qoutes from browser option var

Hi please remove qoutes from browser option vars specifically for firefox
If not then when firefox private windows opens up with two tabs one containing aws console and other one displaying all your file / directories in local drive @ following URL file:///Users/myusername/

"$AWS_VAULT_PL_BROWSER_LAUNCH_OPTS" should be updated with $AWS_VAULT_PL_BROWSER_LAUNCH_OPTS

Adding the prompt?

How do you add the prompt to the agnoster theme? I was reading through the agnoster documentation and I was unable to figure it out.

aws profile autocomplete not working in some cases

Hello. Autocomplete for aws profiles stopped working for me for some commands. It works for avli and avsh but it doesn't work for ave and avl anymore. I'm not sure if this functionally was removed or I'm doing something wrong. May I ask for advice on this one?

Latest version opens chrome window that is not maximized

Hi, thank you for this amazing project.
After updating to the latest version the new browser window is not maximized anymore.
avli <profile> - now opened a chrome window that is not maximized and the content is squeezed.

Also calling avli now makes the terminal "blink" for a few seconds.

I believe this commit introduced the problem:
7b1b5db

As well as another problem (that was there before)
The --path argument is not respected with avli, it works perfectly with avl.
avli <profile> --path=lambda -> leads to the main console page.

google-chrome --incognito $(avl -s infra-tools-dev --path="lambda") - works as expected -> starts maximized window and goes to lambda page.

Workarounds

  • --path - I applied a workaround by modifying function avli() on L45 to login_url="$(avll $*)"
  • blinking terminal -- I modified L82 to (${browser} --no-first-run --incognito "${login_url}" 1>/dev/null 2>/dev/null && rm -rf "${AVLI_TMP_PROFILE}")

Specify yubikey otp profile does not work anymore?

Either my brain is pulling tricks on my, but I seem to remember I could specify the yubiky OTP profile to use on the zsh-aws-vault shortcuts like avsh.

eg, this is my .aws/config file:

[default]
region=eu-west-1

[profile hic]
mfa_serial=arn:aws:iam::xxxxxx:mfa/jeroen

[profile hic-admin]
source_profile = hic
role_arn = arn:aws:iam::xxxxxx:role/hic-admin-role
mfa_serial=arn:aws:iam::xxxxxx:mfa/jeroen

On my Yubikey, I have an OTP profile called hic-aws-user , and I verified this working correctly.

Shouldn't I be able to just type something like avsh hic-admin hic-aws-user, and It would get OTP key automatically and start the shell for the hic-admin profile?

avsh hic-admin hic-aws-user
aws-vault: error: exec: Couldn't find the executable 'hic-aws-user': exec: "hic-aws-user": executable file not found in $PATH

I really seem to have a memory of this working in the past, so either this is a false memory or I am missing something obvious?

env vars:

AWS_VAULT_BACKEND=pass
AWS_VAULT_PASS_PREFIX=aws-vault
AWS_VAULT_PL_BROWSER=''
AWS_VAULT_PL_BROWSER_LAUNCH_OPTS=''
AWS_VAULT_PL_DEFAULT_PROFILE=default
AWS_VAULT_PL_MFA=yubikey

Allow hiding `default` login in prompt_segment

90% of the time, my terminal prompt looks like this:

screen shot 2017-12-05 at 09 38 28

It'd be nice to allow hiding this and just show the little cloud when you're logged into your default.

I think we should also provide an environment variable that folks can override to:

  • turn off the feature
  • ignore another "default-ish" profile, other than default.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.