You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
When running the eval $(maws) command my bash prompt is not updating correctly with the correct $(maws_profile) name. This is how my prompt looks like when I run the command (arn edited with bogus account id)
limed@kaylee:~$ eval $(maws)
Environment variables set for role arn:aws:iam::12345678:role/maws-admin
limed@kaylee:~$(maws_profile)$
The maws_profile function does appear to be populated
The shell I am using is bash and I'm using bash version 5
$ echo $SHELL
/bin/bash
limed@kaylee:~$(maws_profile)$ bash --version
GNU bash, version 5.0.16(1)-release (x86_64-apple-darwin19.3.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
The text was updated successfully, but these errors were encountered:
This happens if your PS1 ends in \$ rather than just $ . Maws only strips off $ , leaving the back slash in place, so the $(maws_profile) gets escaped and never executed. The workaround is to modify your bashrc file and set your PS1 to a prompt ending in just $ without the back slash – there is no need to escape the trailing dollar sign.
gene1wood
changed the title
Maws prompt not displaying properly
Maws prompt not displaying properly when it ends in \$
Apr 13, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When running the
eval $(maws)
command my bash prompt is not updating correctly with the correct$(maws_profile)
name. This is how my prompt looks like when I run the command (arn edited with bogus account id)The
maws_profile
function does appear to be populatedAnd this is my
PS1
variableThe shell I am using is bash and I'm using bash version 5
The text was updated successfully, but these errors were encountered: