Skip to content

Commit

Permalink
Fix bash prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Oct 29, 2019
1 parent 5ebc234 commit 57d6a9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "awscredx"
version = "0.5.5"
version = "0.5.6"
authors = ["Alexei Samokvalov <[email protected]>"]
edition = "2018"

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ In a new shell you can call `assume <profile name>` to assume the role from `<pr

## Features

### Shows assumed profile in shell prompt
![prompt](./doc/prompt.png)

### Explains what has been done
![init](./doc/init.png)

Expand All @@ -25,16 +28,16 @@ dev = "arn:aws:iam::123456589012:role/Admin"
prod = "arn:aws:iam::123456589013:role/TestRole"
```

### Shows assumed profile in shell prompt
![prompt](./doc/prompt.png)

### Yubikey integration
The MFA is read from your Yubikey so you do not need to type it.\
![prompt](./doc/yubikey.png)

### Checks for new versions
![version-check](./doc/version-check.png)

### Supports `HTTPS_PROXY` envvar
In case you are behind a corporate proxy.

### Written with love in Rust
https://www.rust-lang.org/

Expand Down
2 changes: 1 addition & 1 deletion src/init/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function assume {
s=$?
if [[ $s == 0 ]]; then
$out
PS1="[\e[1;35m$AWS_PROFILE\e[m] ${_ORIGINAL_PS1:-}"
PS1="[\e[1;35m\$AWS_PROFILE\e[m] ${_ORIGINAL_PS1:-}"
else
return $s
fi
Expand Down

0 comments on commit 57d6a9c

Please sign in to comment.