From 92739204bc99b9b3602778bcbbcc7e36cb60a3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 5 Jan 2023 10:11:54 +0100 Subject: [PATCH] Added the azure-cli to autocomplition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index 9f5434c..0eb3da3 100644 --- a/.zshrc +++ b/.zshrc @@ -25,6 +25,7 @@ HISTFILE=$HOME/.history_zsh HISTSIZE=10000000 SAVEHIST=10000000 autoload -U colors && colors +autoload bashcompinit && bashcompinit setopt PROMPT_SUBST PS1='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(parse_git_branch)%{$reset_color%}' plugins=(rake ruby vagrant knife knife_ssh kitchen ) @@ -46,6 +47,7 @@ if [ ! -d $CONFIG/zsh/aws ]; then curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o $CONFIG/zsh/aws/aws.plugin.zsh curl https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o $CONFIG/zsh/azure-cli/az.completion fi +[ -d $CONFIG/zsh/azure-cli ] && source $CONFIG/zsh/azure-cli/az.completion &>> /dev/null [ -f $HOME/.password ] && source $HOME/.password [ ! -d $CONFIG/fzf ] && git clone https://github.com/junegunn/fzf.git $HOME/.config/fzf [ -f $CONFIG/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh