Skip to content

Commit

Permalink
fix: fix session-manager install for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Dec 21, 2024
1 parent d38feeb commit 70204ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dots/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,14 @@ zinit wait'1' as'null' sbin'bin/n' lucid for \
tj/n

## aws cli and session-manager
## auto compiling zshrc & run additional setup
zinit wait'1' as'null' lucid for \
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' \
atclone'[[ "$(uname)" == "Linux" ]] && curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" && sudo dpkg -i session-manager-plugin.deb' \
atclone'[[ "$(uname)" == "Darwin" ]] && curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" && sudo installer -pkg AWSCLIV2.pkg -target /' \
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' \
atpull'%atclone' \
https://github.com/aws/aws-cli/blob/v2/bin/aws_zsh_completer.sh

## auto compiling zshrc & run additional setup
zinit wait'1' as'null' lucid nocd for \
atload'([[ ! -e ~/.zshrc.zwc ]] || [[ ~/.zshrc -nt ~/.zshrc.zwc ]]) && zcompile ~/.zshrc' \
atinit'complete -C aws_completer aws' atpull'%atclone' \
rajyan/null

# keybindings
Expand Down

0 comments on commit 70204ba

Please sign in to comment.