Updated update_zsh - installer.sh

Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
Marcin Woźniak 2023-03-21 12:32:14 +01:00
parent 84cb2cc5b4
commit 97e05f54b0

View File

@ -109,14 +109,15 @@ function install_awscli() {
} }
function update_zsh() { function update_zsh() {
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
for i in $(ls $HOME/.config/zsh); do for i in $(ls $HOME/.config/zsh); do
FOLDER="$HOME/.config/zsh/$i" FOLDER="$HOME/.config/zsh/$i"
git pull
cd "$FOLDER" || echo "Folder is not exists" cd "$FOLDER" || echo "Folder is not exists"
git pull
done done
ZSHFOLDER="$HOME/.config/zsh/" ZSHFOLDER="$HOME/.config/zsh/"
curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o "$ZSHFOLDER"/aws/aws.plugin.zsh curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o "$ZSHFOLDER"/aws/aws.plugin.zsh
curl https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o "$ZSHFOLDER"/azure-cli/az.completion curl -s https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o "$ZSHFOLDER"/azure-cli/az.completion
} }
function main() { function main() {