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
1 changed files with 4 additions and 3 deletions

View File

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