Difference between revisions of "Template:Suaws"

From wikieduonline
Jump to navigation Jump to search
(Created page with " suaws () { if [ -z "$1" ]; then echo "possible values: $(aws configure list-profiles)" else export AWS_PROFILE=$1 export PS1='...")
 
 
Line 1: Line 1:
 
  [[suaws]] () {
 
  [[suaws]] () {
 
   if [ -z "$1" ]; then
 
   if [ -z "$1" ]; then
           echo "possible values: $([[aws configure list-profiles]])"
+
           echo "Possible values: $([[aws configure list-profiles]])"
 
     else
 
     else
 
       [[export]] [[AWS_PROFILE]]=$1
 
       [[export]] [[AWS_PROFILE]]=$1

Latest revision as of 09:05, 31 July 2022

suaws () {
 if [ -z "$1" ]; then
         echo "Possible values: $(aws configure list-profiles)"
   else
     export AWS_PROFILE=$1
     export PS1='[\u@\h $AWS_PROFILE]\$ '
 fi
}

Advertising: