mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-21 03:41:57 +00:00
Merge pull request #3067 from tacgnol/AWS
Fix issue with homebrew installed awscli
This commit is contained in:
commit
6d5d67a35d
1 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
_homebrew-installed() {
|
||||||
|
type brew &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
_awscli-homebrew-installed() {
|
||||||
|
brew --prefix awscli &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
export AWS_HOME=~/.aws
|
export AWS_HOME=~/.aws
|
||||||
|
|
||||||
function agp {
|
function agp {
|
||||||
|
@ -14,4 +22,9 @@ function aws_profiles {
|
||||||
}
|
}
|
||||||
|
|
||||||
compctl -K aws_profiles asp
|
compctl -K aws_profiles asp
|
||||||
source `which aws_zsh_completer.sh`
|
|
||||||
|
if _homebrew-installed && _awscli-homebrew-installed ; then
|
||||||
|
source $(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh
|
||||||
|
else
|
||||||
|
source `which aws_zsh_completer.sh`
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue