Skip to content

Small adjustment in order to make yarn-completion.bash compatible to zsh - #57

Open
jayefem wants to merge 1 commit into
dsifford:masterfrom
jayefem:master
Open

Small adjustment in order to make yarn-completion.bash compatible to zsh#57
jayefem wants to merge 1 commit into
dsifford:masterfrom
jayefem:master

Conversation

@jayefem

@jayefem jayefem commented Dec 19, 2023

Copy link
Copy Markdown

Works for me on zsh 5.8.1 (x86_64-ubuntu-linux-gnu) when adding the following to ~/.zshrc:

source yarn-completion.bash

Comment thread yarn-completion.bash
" RETURN

shopt -s extglob
if [[ "$SHELL" != "/bin/zsh" && "$SHELL" != "/usr/bin/zsh" ]]; then

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if zsh is installed in a non-standard path? Like if installed by homebrew or something? Is there a more reliable way of determining this?

Or perhaps instead of making this a check of the negative ("this shell is not zsh"), maybe it would be better to make this a check of the affirmative ("this shell is bash").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants