Difference between revisions of "Aws cli: Auto-prompt"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list-aws_cli_auto_prompt
 
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list-aws_cli_auto_prompt
 
  aws_cli_auto_prompt  
 
  aws_cli_auto_prompt  
  export AWS_CLI_AUTO_PROMPT=on  
+
  [[export]] AWS_CLI_AUTO_PROMPT=on  
 +
 
 +
 
 +
awscli_completion_on () {
 +
        $([[export]] [[AWS_CLI_AUTO_PROMPT]]=on)
 +
        echo "AWS_CLI_AUTO_PROMPT set to on"
 +
}
 +
 +
awscli_completion_off () {
 +
        $(export AWS_CLI_AUTO_PROMPT=off)
 +
        echo "AWS_CLI_AUTO_PROMPT set to off"
 +
}
  
  
 
== Related terms ==
 
== Related terms ==
 
* [[Bash completion]]
 
* [[Bash completion]]
 +
* <code>[[AWS_CLI_AUTO_PROMPT]]</code>
 +
* To disable it: <code>[[aws --no-cli-auto-prompt]]</code>
 +
* <code>[[AWS_PROFILE]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{aws configure}}
 
* {{aws cli}}
 
* {{aws cli}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 19:30, 29 September 2022

Advertising: