Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
joebywan opened this issue Mar 29, 2022 · 5 comments
Closed

Comments

@joebywan
Copy link

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
Copy link

rozhok commented Oct 5, 2022

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

@eva-mueller-coremedia
Copy link

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
Copy link
Collaborator

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
Copy link

JalfResi commented Jun 1, 2023

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
Copy link
Collaborator

mtskillman commented Sep 12, 2023

issue resolved by #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@JalfResi @rozhok @joebywan @LucasZielke @eva-mueller-coremedia @mtskillman and others