Skip to content

Commit 182388e

Browse files
committed
feat: add aws cli instllation
1 parent 9abce29 commit 182388e

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

dots/.zshrc

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ zinit lucid for \
8989
atpull'%atclone' src'brew.zsh' \
9090
Homebrew/install
9191

92+
## wezterm
93+
zinit wait'1' if'[[ "$(uname)" == "Darwin" ]]' from'gh-r' as'null' lucid \
94+
mv'WezTerm-*/WezTerm.app -> /Applications/WezTerm.app' sbin'/Applications/WezTerm.app/Contents/MacOS/wezterm*' for \
95+
wez/wezterm
96+
zinit wait'1' if'[[ "$(uname)" == "Linux" ]]' from'gh-r' as'null' lucid \
97+
bpick'*.AppImage' mv'*.appimage -> wezterm' sbin'wezterm' for \
98+
atclone'./wezterm --appimage-extract' \
99+
atclone'command cp ./squashfs-root/*.png ~/.icons/' \
100+
atclone'sed "s|=wezterm|=$ZPFX/bin/wezterm|g" ./squashfs-root/*.desktop > ~/.local/share/applications/wezterm.desktop' \
101+
atpull'%atclone' \
102+
wez/wezterm
103+
92104
## git credential manager
93105
zinit wait'1' from'gh-r' as'null' sbin'git-credential-manager' lucid for \
94106
if'[[ "$(uname)" == "Linux" ]]' bpick'*amd64*[0-9].tar.gz' \
@@ -120,22 +132,22 @@ zinit wait'1' as'null' sbin'bin/n' lucid for \
120132
atpull'%atclone' \
121133
tj/n
122134

135+
## aws cli and session-manager
136+
zinit wait'1' as'null' sbin'session-manager-plugin' depth'1' lucid for \
137+
has'go' \
138+
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' \
139+
atclone'[[ "$(uname)" == "Debian" ]] && curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" && sudo installer -pkg AWSCLIV2.pkg -target /' \
140+
atclone'make release' \
141+
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' \
142+
atclone'rm -rf aws awscliv2.zip bin' \
143+
atpull'%atclone' \
144+
aws/session-manager-plugin
145+
123146
## auto compiling zshrc & run additional setup
124147
zinit wait'1' as'null' lucid nocd for \
125148
atload'([[ ! -e ~/.zshrc.zwc ]] || [[ ~/.zshrc -nt ~/.zshrc.zwc ]]) && zcompile ~/.zshrc' \
126-
atload'export PATH="$HOME/.local/bin:$PATH"' \
127149
rajyan/null
128150

129-
zinit wait'2' if'[[ "$(uname)" == "Darwin" ]]' from'gh-r' as'null' lucid \
130-
mv'WezTerm-*/WezTerm.app -> /Applications/WezTerm.app' sbin'/Applications/WezTerm.app/Contents/MacOS/wezterm*' for \
131-
wez/wezterm
132-
zinit wait'2' if'[[ "$(uname)" == "Linux" ]]' from'gh-r' as'null' lucid \
133-
bpick'*.AppImage' mv'*.appimage -> wezterm' sbin'wezterm' for \
134-
atclone'./wezterm --appimage-extract' \
135-
atclone'command cp ./squashfs-root/*.png ~/.icons/' \
136-
atclone'sed "s|=wezterm|=$ZPFX/bin/wezterm|g" ./squashfs-root/*.desktop > ~/.local/share/applications/wezterm.desktop' \
137-
wez/wezterm
138-
139151
# keybindings
140152
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
141153
zle -N up-line-or-beginning-search

0 commit comments

Comments
 (0)