trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
502 stars 91 forks source link

Awsume complains about not being sourced, even when configure has been run #181

Closed joebywan closed 1 year ago

joebywan commented 2 years ago

OS is linux mint 20.3 cinnamon.

I've run awsume-configure and it's added the following to my ~/.profile:

`#AWSume alias to source the AWSume script alias awsume="source awsume"

Auto-Complete function for AWSume

_awsume() { local cur prev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" opts=$(awsume-autocomplete) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 } complete -F _awsume awsume `

I've tried creating and adding it to ~/.bashrc also, no luck there.

Any suggestions? Anymore info I can provide?

rozhok commented 1 year ago

Same for me, Linux Mint 20.3. Even worse, awsume crashes terminal session.

eva-mueller-coremedia commented 1 year ago

Did you try to update the alias by using the absolute path alias awsume="source <PATH/TO/AWSUME>/awsume" Check in a new tab (or source ~/.bashrc resp. source ~/.bash_profile)

LucasZielke commented 1 year ago

I notice this issue, including where awsume crashes the terminal session, only when I have more than one install of awsume, such as where its installed with pipx, and in a seperate venv.

JalfResi commented 1 year ago

I had the same issue, however I realised that I had installed Awsume outside of a venv. Once I uninstalled it, and installed it again inside my venv, everything worked perfectly.

mtskillman commented 1 year ago

issue resolved by https://github.com/trek10inc/awsume/issues/183 -> root cause pertains to dash being default shell on Debian systems. #183 prevents autocomplete script from being used for cases in which dash is default shell.