From e530968eac2b77d58857c6e706ae09275b0f90c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 21 Mar 2023 07:39:28 +0100 Subject: [PATCH] Added update_zsh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .config/nvim/installer.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.config/nvim/installer.sh b/.config/nvim/installer.sh index 67f594b..d15bebd 100755 --- a/.config/nvim/installer.sh +++ b/.config/nvim/installer.sh @@ -1,4 +1,5 @@ #!/bin/bash +# shellcheck disable=2045,2086 function timestamp() { echo "[+] $(date +'%F %T') [INFO] $*" @@ -24,10 +25,6 @@ function install_neovim_module_for_python() { pip3 install neovim --pre --user --force } -function install_awscli() { - pip3 install awscli --pre --user --force -} - function install_pyright() { # Install pyright sudo npm -g i pyright --force @@ -97,6 +94,21 @@ function install_azure_cli() { pip3 install azure-cli --user --pre --force } +function install_awscli() { + pip3 install awscli --pre --user --force +} + +function update_zsh() { + for i in $(ls $HOME/.config/zsh); do + FOLDER="$HOME/.config/zsh/$i" + git pull + cd "$FOLDER" || echo "Folder is not exists" + 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 +} + function main() { command_start update_pip command_start install_pyright @@ -111,6 +123,7 @@ function main() { command_start install_black command_start install_ansible command_start install_meraki_ansible + command_start update_zsh } main