$(gimme-aws-creds) doesn't work on zsh

See original GitHub issue

When running $(gimme-aws-creds) on zsh, I get the following error: zsh: command not found: #.

Expected Behavior

I expect this command to also work on zsh.

Current Behavior

The above described error occurs and the env variables are not set.

Possible Solution

Remove the comment from the output or make it dependent on the shell being used (i.e. $SHELL).

Steps to Reproduce (for bugs)

  1. Use zsh as the shell
  2. Run $(gimme-aws-creds)

Context

I had to run gimme-aws-creds and then copy the output and run it manually.

Your Environment

  • App Version used: gimme-aws-creds 2.1.3
  • Environment name and version: zsh 5.7.1
  • Operating System and version: macOS 10.15.1

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:21

github_iconTop GitHub Comments

6reactions
larryoncommented, Jul 20, 2020

you could try cd ~ find -name gimme-aws-creds teoretically it should be ./.local/bin/gimme-aws-creds

also you can add export PATH=~/.local/bin:$PATH in ~/.zshrc file and restart terminal

2reactions
larryoncommented, Apr 16, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

gimme-aws-creds throws error while registering the MFA device
I am trying to configure gimme-aws-creds with below configuration [DEFAULT] okta_org_url = https://xxxxx.okta.com okta_auth_server ...
Read more >
Gimme AWS Creds – Installation and Usage - YouTube
Use or want a VPN for your privacy and/or security? Why not consider NordVPN?! It's what I personally use, and every purchase benefits...
Read more >
gimme-aws-creds - Homebrew Formulae
CLI to retrieve AWS credentials from Okta. https://github.com/Nike-Inc/gimme-aws-creds. License: Apache-2.0. Formula JSON API: /api/formula/gimme-aws-creds.
Read more >
Bountysource
(gimme-aws-creds) doesn't work on zsh.
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
The AWS CLI might be reading credentials from a different location than you expect, or your key pair information is incorrect. You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found