Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
fcbdc330
Unverified
Commit
fcbdc330
authored
Mar 28, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(aws): restore accidentally deleted variable
Closes #11589
parent
8f6fbe23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
aws.plugin.zsh
plugins/aws/aws.plugin.zsh
+1
-1
No files found.
plugins/aws/aws.plugin.zsh
View file @
fcbdc330
...
@@ -197,6 +197,7 @@ compctl -K _aws_profiles asp acp aws_change_access_key
...
@@ -197,6 +197,7 @@ compctl -K _aws_profiles asp acp aws_change_access_key
# AWS prompt
# AWS prompt
function
aws_prompt_info
()
{
function
aws_prompt_info
()
{
local
_aws_to_show
local
_aws_to_show
local
region
=
"
${
AWS_REGION
:-${
AWS_DEFAULT_REGION
:-
$AWS_PROFILE_REGION
}}
"
if
[[
-n
$AWS_PROFILE
]]
;
then
if
[[
-n
$AWS_PROFILE
]]
;
then
_aws_to_show+
=
"
${
ZSH_THEME_AWS_PROFILE_PREFIX
:
=<aws
:
}${
AWS_PROFILE
}${
ZSH_THEME_AWS_PROFILE_SUFFIX
:
=>
}
"
_aws_to_show+
=
"
${
ZSH_THEME_AWS_PROFILE_PREFIX
:
=<aws
:
}${
AWS_PROFILE
}${
ZSH_THEME_AWS_PROFILE_SUFFIX
:
=>
}
"
fi
fi
...
@@ -211,7 +212,6 @@ if [[ "$SHOW_AWS_PROMPT" != false && "$RPROMPT" != *'$(aws_prompt_info)'* ]]; th
...
@@ -211,7 +212,6 @@ if [[ "$SHOW_AWS_PROMPT" != false && "$RPROMPT" != *'$(aws_prompt_info)'* ]]; th
RPROMPT
=
'$(aws_prompt_info)'
"
$RPROMPT
"
RPROMPT
=
'$(aws_prompt_info)'
"
$RPROMPT
"
fi
fi
# Load awscli completions
# Load awscli completions
# AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back
# AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment