-
Notifications
You must be signed in to change notification settings - Fork 852
Description
aws-vault exec $profile is quite long and covers 90% of my usage of aws-vault once setup is complete, furthermore I need to unset variables to change the aws account I am assumed against making the process even more verbose. As a result of all this I like alias my primary aws-vault command to something a bit smaller alias awsv='unset AWS_VAULT AWS_REGION AWS_DEFAULT_REGION; aws-vault exec'. Using my alias breaks the completion script however.
Using the normal aws-vault command tabbing will bring up the configured profiles, if I use my alias tabbing just brings up a ls of one of my completion script directories.
What do I need to add to my .bashrc to allow my alias to work with aws-vault? Perhaps this information should be included in the shell-completion section as I think aliasing the command will be a fairly common configuration.
https://kubernetes.io/docs/tasks/tools/included/optional-kubectl-configs-bash-linux/#enable-kubectl-autocompletion Kubernetes provides some information on how to get completion scripts to work with an alias, it would be great if aws-vault provided the same sort of documentation as this for those that like to use aliases.