2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Azure CLIのcompletionを有効にする

Last updated at Posted at 2021-03-07

completionファイルをダウンロードする

% mkdir -p ~/.zsh/completions  # 場所は任意
% cd !$
% curl -sLO 'https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion'

.zshrcにcompletionファイルを読み込む設定を追加する

.zshrc
autoload -Uz +X bashcompinit && bashcompinit
if [ -f "$HOME/.zsh/completions/az.completion" ]; then
  source $HOME/.zsh/completions/az.completion
fi

SHELLを再読み込み

% exec -l $SHELL

確認

% az account <TAB>
--help            -h                clear             get-access-token  list              list-locations    lock              management-group  set               show

以上

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?