Commit graph

36 commits

Author SHA1 Message Date
Marc Cornellà
f776af2a1f Remove redundant bashcompinit calls
Fixes #9246
2020-09-30 19:00:51 +02:00
Amir Tahvildaran
db3d05fe71
aws: improve check for aws_completer - unhardcode path (#9123)
Closes #9122

The current check is assuming that the aws_completer is installed
globally, it then runs the command without that path

I have aws_completer in ~/.local/bin/aws_completer

This changes the check to see if the command exists instead of
concerning itself with where it in installed. This test matches the
behavior of just running the command.
2020-07-18 19:06:08 +02:00
Lutz Horn
d79941b789
aws: allow @ in AWS profiles (#9099)
Fixes #9060 by matching a `@` in the AWS profile name.
2020-07-09 10:43:59 +02:00
tom139
c686aa3dbb
aws: fix aws_change_access_key function with awscli v2 (#8816) 2020-04-26 12:28:24 +02:00
B YI
4c73584025
aws: fix awscli completion path on NixOS (#8707) 2020-03-09 17:07:34 +01:00
Marc Cornellà
1ef3d57739
aws: add support for AWS CLI v2 autocompletion (#8670)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-05 17:13:46 +01:00
Marc Cornellà
dcffc89580 aws: fix array assignment in asp function
Older zsh versions require this syntax change.
Fixes #8525
2020-01-30 13:32:55 +01:00
Marc Cornellà
9930dd6e49 aws: use function keyword in function definitions
Fixes #7886
2019-05-28 15:33:02 +02:00
programmer04
1343ab67ed aws: check availability of aws profiles (#7839) 2019-05-26 12:31:37 +02:00
Marc Cornellà
9598a855fa
aws: check for existence of config file in aws_profiles
Fixes #7872
2019-05-25 10:24:43 +02:00
Mohamed El Mouctar Haidara
4585c6662b aws: really unset AWS*PROFILE variables in asp function (#7838) 2019-05-10 17:28:31 +02:00
dorons
d16adb6a9f aws: fix path resolution of aws completion for Ubuntu (#7812) 2019-04-29 11:42:36 +02:00
programmer04
5f9cc016d7 Fix redundant export of RPROMPT in aws plugin 2019-04-09 21:07:42 +02:00
Marc Cornellà
63291f4fcc
Reword and fix formatting 2019-04-09 18:24:04 +02:00
programmer04
53d6a692d1 Fix showing aws prompt for theme fishy (append RPROMPT instead of overwrite) 2019-04-08 22:08:37 +02:00
Marc Cornellà
6d143d42ea aws: document aws_change_access_key and fix README 2019-03-24 19:54:56 +01:00
Marc Cornellà
5f893dcd20 aws: clean up aws_change_access_key function 2019-03-24 19:50:47 +01:00
Cristian Măgherușan-Stanciu
4f4985fddc aws: added an alias for changing the AWS access key set on a profile 2019-03-24 19:50:41 +01:00
Logan Lindquist
8cbdd79517 aws: set AWS_EB_PROFILE for the EB CLI (#7388)
Added AWS_EB_PROFILE environment variable to the AWS Plugin. The EB CLI uses this
variable instead of the primary AWS_PROFILE variable to keep track of what profile
it is using.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
2019-03-24 19:46:27 +01:00
David Kane
532a784b80 aws: refactor AWS plugin (#7615)
* Update the AWS plugin to support disabling RPROMT display:
  Use a $SHOW_AWS_PROMPT option.

* Refactoring aws plugin:
  Exposing customizable aws_prompt_info function to be used in themes.

* Set aws prompt prefix and suffix to original values and fix README

Co-authored-by: "Vassilis S. Moustakas" <vsmoustakas@gmail.com>
2019-03-24 19:37:45 +01:00
Marc Cornellà
1a2d930bca
aws: refactor completion sourcing logic (#7364)
* Clean up Homebrew detection and add comments. Also changed some if flags.
* Detect aws cli completion file from RPM
2019-03-23 19:52:31 +01:00
Anton Stamenov
0cc1266c17 aws_porfiles regex is catching more lines than profiles, thus breaking completion (#7469) 2018-12-31 11:15:56 -08:00
Jorge Vargas
543044efe3 aws: use AWS_CONFIG_FILE to complete profiles
Stop exporting AWS_HOME and use the standard AWS_CONFIG_FILE environment
variable, with a fallback to ~/.aws/config (default location) if not
defined.

Close #7356
2018-10-28 16:01:28 +01:00
Vargas, Jorge L
e4946ef9f9 aws: change AWS_DEFAULT_PROFILE to AWS_PROFILE
The environment variable name used to be AWS_DEFAULT_PROFILE but the
CLI documentation now only mentions AWS_PROFILE.

https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html

It seems like the CLI was the only tool using AWS_DEFAULT_PROFILE, and
all the AWS SDKs used AWS_PROFILE, so they standardized on it.

https://onetechnical.wordpress.com/2016/10/07/the-curious-case-of-aws_default_profile/

Note: still left AWS_DEFAULT_PROFILE on the method to set the profile to
maintain backwards compatibility.

Close #7354
2018-10-28 16:01:09 +01:00
Jorge Luis Vargas Aguilar
684feffc35 aws: add README (#7357) 2018-10-28 13:17:41 +01:00
Frank Wittig
e8aaab56b9 allow . in profile names 2018-05-16 18:01:09 +02:00
Hosh
e8c328cb39 Update AWS completion (#6745) 2018-05-10 20:53:16 +02:00
T0mK0
9d6b6c5ce1 speed up chruby plugin by eliminating(as much as possible) calls to brew (#6080)
* speed up chruby plugin by eliminating(as much as possible) calls to brew

* speed up aws plugin by eliminating(as much as possible) calls to brew
2017-11-07 08:03:54 -08:00
Alexey V Zapparov
7a63ccabf6 Fix aws plugin RPROMPT pollution 2015-09-04 21:18:32 +02:00
Robby Russell
04c301bb3a Merge pull request #3975 from wernerb/patch-1
Set AWS_PROFILE and use existing RPROMPT
2015-06-14 22:10:18 -07:00
Andrew Purcell
41104f8af8 Fix homebrew directory in aws plugin.
Sometimes the output of ``homebrew --prefix`` and ``homebrew --prefix
awscli`` don't match, and the second is the correct call.
2015-06-10 14:36:54 +02:00
Werner Buck
5770ad51f9 Set AWS_PROFILE and use existing RPROMPT 2015-06-09 16:52:40 +02:00
Superbil
7931d5ce1a
Fix aws.plugins.zsh check rule
Check _aws_zsh_completer_path had exist or not
2014-12-16 00:51:22 +08:00
Matt Walker
87fb118dd2 Changed brew cmd to properly report if awscli is installed via homebrew 2014-09-03 12:01:29 -07:00
Douglas S.D. Hall
f492207329 Amended to source the original aws_zsh_completer.sh rather than
the mangled version installed into $(brew-prefix)/bin if using
homebrew installed awscli on OSX.

This was discussed here - https://github.com/Homebrew/homebrew/issues/30268
2014-08-30 17:20:28 +01:00
Cristian Măgherușan-Stanciu
190fcdffa7 Added a completion plugin for the new aws-cli tool
It also supports quickly switching AWS profiles defined in
~/.aws/config using the asp alias
2013-10-09 17:00:39 +02:00