1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-12 15:34:50 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
tom139
c686aa3dbb
aws: fix aws_change_access_key function with awscli v2 (#8816) 2020-04-26 12:28:24 +02:00
Tapan Avasthi
80f669db47
jsontools: correct usage for is_json (#8857) 2020-04-26 12:25:00 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -31,12 +31,12 @@ function aws_change_access_key() {
echo Insert the credentials when asked.
asp "$1" || return 1
aws iam create-access-key
aws configure --profile "$1"
AWS_PAGER="" aws iam create-access-key
AWS_PAGER="" aws configure --profile "$1"
echo You can now safely delete the old access key running \`aws iam delete-access-key --access-key-id ID\`
echo Your current keys are:
aws iam list-access-keys
AWS_PAGER="" aws iam list-access-keys
}
function aws_profiles() {

View File

@ -29,7 +29,7 @@ curl https://coderwall.com/bobwilliams.json | pp_json
- **is_json**:
```sh
# pretty print the contents of an existing json file
# Validate if file's content conforms to a valid JSON schema
less data.json | is_json
```