Skip to content

Commit

Permalink
#28: fix example-cfg, fix README, keep account/role info for prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Flamm committed Jul 25, 2017
1 parent a6b1f08 commit 8409f46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ HOST=<your afp host>
_PATH=<your path to service endpoint, typically "/afp-api/latest/account">
NAME=<your username> # optional
PW=<your password> # optional, I wouldn't put it here
PATTERN="${ACCOUNT}|${ROLE}" # optional, the message you want to see in front of the prompt
PATTERN=\${ACCOUNT}/\${ROLE} # optional, the message you want to see in front of the prompt
RENEW_INT=<custom token renew interval> # optional, defaults to token's expiry
INSECURE=<true|false> # optional, perform "insecure" SSL connections, defaults to false
```
Expand Down
4 changes: 3 additions & 1 deletion afpre
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ACCOUNT=my.account
ROLE=my.role
HOST=my.afp.host
_PATH=/afp-api/latest/account
#PATTERN="\${ACCOUNT}|\${ROLE}" # This will appear in front of the prompt
#PATTERN=\\\${ACCOUNT}/\\\${ROLE} # This will appear in front of the prompt
#NAME=my.name
#PW=my.password # I wouldn't put it here
EOF
Expand Down Expand Up @@ -128,6 +128,8 @@ $DEBUG && set -x
AWS_VALID_SECONDS=0
RENEW_INT=$RENEW_INT
ACCOUNT=$ACCOUNT
ROLE=$ROLE
for F in /etc/bash.bashrc /etc/bashrc ~/.bashrc ~/.profile
do
Expand Down

0 comments on commit 8409f46

Please sign in to comment.