mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
Set AWS_PROFILE and use existing RPROMPT
This commit is contained in:
parent
4224c2a1af
commit
5770ad51f9
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ function agp {
|
|||
}
|
||||
function asp {
|
||||
export AWS_DEFAULT_PROFILE=$1
|
||||
export RPROMPT="<aws:$AWS_DEFAULT_PROFILE>"
|
||||
export AWS_PROFILE=$1
|
||||
export RPROMPT="<aws:$AWS_DEFAULT_PROFILE>$RPROMPT"
|
||||
}
|
||||
function aws_profiles {
|
||||
reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_-]*\).*/\1/'))
|
||||
|
|
Loading…
Reference in a new issue