Skip to content

Commit d38feeb

Browse files
committed
fix: fix aws cli install for mac
1 parent 6c66a99 commit d38feeb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dots/.zshrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,12 @@ zinit wait'1' as'null' sbin'bin/n' lucid for \
133133
tj/n
134134

135135
## aws cli and session-manager
136-
zinit wait'1' as'null' sbin'session-manager-plugin' depth'1' lucid for \
136+
zinit wait'1' as'null' lucid for \
137137
atclone'[[ "$(uname)" == "Linux" ]] && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install -b $ZPFX/bin -i $ZPFX/aws-cli --update' \
138138
atclone'[[ "$(uname)" == "Darwin" ]] && curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" && sudo installer -pkg AWSCLIV2.pkg -target /' \
139-
has'go' atclone'make release' \
140-
atclone'mv bin/$(uname | tr "[:upper:]" "[:lower:]")_$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)_plugin/session-manager-plugin session-manager-plugin' \
141-
atclone'rm -rf aws awscliv2.zip bin' \
139+
atclone'[[ "$(uname)" == "Darwin" ]] && curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/mac_arm64/session-manager-plugin.pkg" -o "session-manager-plugin.pkg" && sudo installer -pkg session-manager-plugin.pkg -target / && sudo ln -s /usr/local/sessionmanagerplugin/bin/session-manager-plugin /usr/local/bin/session-manager-plugin' \
142140
atpull'%atclone' \
143-
aws/session-manager-plugin
141+
https://github.com/aws/aws-cli/blob/v2/bin/aws_zsh_completer.sh
144142

145143
## auto compiling zshrc & run additional setup
146144
zinit wait'1' as'null' lucid nocd for \

0 commit comments

Comments
 (0)