question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No tab completion on macOS when installed from brew

See original GitHub issue

I am under the assumption that the az CLI should have tab-completion, at least for the top-level commands such az group and such. For me, there is no tab completion.

When I searched online some people mentioned having to source a certain tab completion in their .bash_profile, but nothing in the installation instructions mentions this.

So I’m not sure if there is something broken or if there is a step I am missing. Any help would be appreciated.

Thanks.

Environment summary

macOS 10.13.3

Installed from brew using instructions here: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Shell Type: iTerm2 3.1.5 with bash

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
derekbekoecommented, Jan 25, 2018

At the end of the brew install, it should say this:

==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/azure-cli/2.0.25: 8,504 files, 47.0MB

Then, to enable completion, you can source that file with:

source /usr/local/etc/bash_completion.d/az

To make your terminal always load that file, you can add it to your ~/.bash_profile

0reactions
richbeckscommented, Sep 23, 2021

Same here, just installed azure-cli and no completions are installed, have they been removed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

brew Shell Completion - Homebrew Documentation
Homebrew comes with completion definitions for the brew command. ... Shell completions for external Homebrew commands are not automatically installed.
Read more >
Bash Completion · macOS Setup Guide
Bash completion is a bash function that allows you to auto complete commands or arguments by typing partially commands or arguments, then pressing...
Read more >
macos - Homebrew's `git` not using completion - Stack Overflow
Open System Preferences -> Users and Groups . · Right click your user and select "Advanced Options". · Set the login shell field...
Read more >
How to enable bash completion in macOS - Simplified Guide
Steps to enable bash completion in macOS: · Launch Terminal. · Install bash-completion via Homebrew. $ brew install bash-completion · Manually enable bash- ......
Read more >
Git autocompletion is not working with homebrew - Ask Different
For Yosemite, after I upgraded to git 2.1.3 with homebrew, this worked in my .profile file ( .bash_profile or similar would work, too):...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found