Homebrew / homebrew-aliases

:arrow_right: Aliases for Homebrew
BSD 2-Clause "Simplified" License
149 stars 31 forks source link

Can't get aliases added to Bash completion #91

Closed yermulnik closed 2 weeks ago

yermulnik commented 2 weeks ago

I'm truing to debug why Bash completion for Brew aliases work on one of my systems, while it doesn't on another. "Affected" system:

> brew --version
Homebrew 4.3.18

> brew tap | fgrep alias
homebrew/aliases

> brew tap-info homebrew/aliases
homebrew/aliases: Installed
3 commands
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-aliases (243 files, 908.8KB)
From: https://github.com/Homebrew/homebrew-aliases

> tree -L 1 ~/.brew-aliases/
/home/yz/.brew-aliases/
├── list_installed_files
├── list_installed_packages_by_date
├── list_installed_packages_by_name
├── list_installed_packages_versions
├── RCS
├── show
└── which

1 directory, 6 files

> ls -l /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
lrwxrwxrwx 1 yz yz 36 Nov 15  2020 /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew -> ../../Homebrew/completions/bash/brew

> ls -l /home/linuxbrew/.linuxbrew/bin/brew-*
lrwxrwxrwx 1 yz yz 43 Aug 29 17:52 /home/linuxbrew/.linuxbrew/bin/brew-list_installed_files -> /home/yz/.brew-aliases/list_installed_files
lrwxrwxrwx 1 yz yz 43 Aug 29 17:27 /home/linuxbrew/.linuxbrew/bin/brew-list-installed-files -> /home/yz/.brew-aliases/list_installed_files
lrwxrwxrwx 1 yz yz 54 Aug 29 17:52 /home/linuxbrew/.linuxbrew/bin/brew-list_installed_packages_by_date -> /home/yz/.brew-aliases/list_installed_packages_by_date
lrwxrwxrwx 1 yz yz 54 Aug 29 17:28 /home/linuxbrew/.linuxbrew/bin/brew-list-installed-packages-by-date -> /home/yz/.brew-aliases/list_installed_packages_by_date
lrwxrwxrwx 1 yz yz 54 Aug 29 17:52 /home/linuxbrew/.linuxbrew/bin/brew-list_installed_packages_by_name -> /home/yz/.brew-aliases/list_installed_packages_by_name
lrwxrwxrwx 1 yz yz 54 Aug 29 17:28 /home/linuxbrew/.linuxbrew/bin/brew-list-installed-packages-by-name -> /home/yz/.brew-aliases/list_installed_packages_by_name
lrwxrwxrwx 1 yz yz 55 Aug 29 17:52 /home/linuxbrew/.linuxbrew/bin/brew-list_installed_packages_versions -> /home/yz/.brew-aliases/list_installed_packages_versions
lrwxrwxrwx 1 yz yz 55 Aug 29 17:28 /home/linuxbrew/.linuxbrew/bin/brew-list-installed-packages-versions -> /home/yz/.brew-aliases/list_installed_packages_versions
lrwxrwxrwx 1 yz yz 27 Aug 29 17:23 /home/linuxbrew/.linuxbrew/bin/brew-show -> /home/yz/.brew-aliases/show
lrwxrwxrwx 1 yz yz 28 Aug 19  2022 /home/linuxbrew/.linuxbrew/bin/brew-which -> /home/yz/.brew-aliases/which

> . /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew

> brew li<tab><tab>
link       linkage    list       livecheck

Is there anything I can take a look into to understand why the same setup on another system works w/o issues and lists Brew aliases? Maybe some specific place inside /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew file that I couldn't identify during my own investigation? 🤔 Thanks.

MikeMcQuaid commented 2 weeks ago

Please open a discussion rather than an issue for this, sorry. Want to keep issues for reproducible problems.

yermulnik commented 2 weeks ago

Please open a discussion rather than an issue for this, sorry. Want to keep issues for reproducible problems.

@MikeMcQuaid That makes sense, though I have no option to open discussion in this repo 🤷🏻 изображение

MikeMcQuaid commented 2 weeks ago

@yermulnik https://github.com/homebrew/discussions

yermulnik commented 2 weeks ago

Thanks for the pointer. Opened: https://github.com/orgs/Homebrew/discussions/5579