Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(zsh): ignore inserting zsh-completion if system don't have zsh shell #1025

Merged

Conversation

Triple-Z
Copy link
Contributor

@Triple-Z Triple-Z commented Oct 13, 2022

resolves: #552

  • Change envd's zsh-completion script name to .envd.zsh
  • Try to write the .envd.zsh by the following methods:
    1. write /usr/share/zsh/site-functions/.envd.zsh directly.
    2. write /usr/local/share/zsh/site-functions/.envd.zsh directly.
    3. write $HOME/.envd.zsh directly and add loaded script into the $HOME/.zshrc

Signed-off-by: Triple-Z me@triplez.cn

pkg/autocomplete/zsh.go Outdated Show resolved Hide resolved
pkg/autocomplete/zsh.go Outdated Show resolved Hide resolved
Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks for your contribution! 🎉 👍

@muniu-bot muniu-bot bot added the lgtm label Oct 14, 2022
@Triple-Z
Copy link
Contributor Author

It seems that the mainline version can't pass the CI too.

- Change envd's zsh-completion script name to `.envd.zsh`
- Try to write the `.envd.zsh` by the following methods:
  1. write `/usr/share/zsh/site-functions/.envd.zsh` directly.
  2. write `/usr/local/share/zsh/site-functions/.envd.zsh` directly.
  3. write `$HOME/.envd.zsh` directly and add loaded script into the
     `$HOME/.zshrc`

Signed-off-by: Triple-Z <me@triplez.cn>
Signed-off-by: Triple-Z <me@triplez.cn>
Signed-off-by: Triple-Z <me@triplez.cn>
Signed-off-by: Triple-Z <me@triplez.cn>
@Triple-Z Triple-Z force-pushed the fix-cli-zsh-completion-warning-gh-552 branch from a07444b to 2308ed4 Compare October 16, 2022 15:12
@muniu-bot muniu-bot bot removed the lgtm label Oct 16, 2022
@muniu-bot
Copy link

muniu-bot bot commented Oct 16, 2022

New changes are detected. LGTM label has been removed.

@muniu-bot
Copy link

muniu-bot bot commented Oct 16, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Triple-Z
Once this PR has been reviewed and has the lgtm label, please ask for approval from gaocegege by writing /assign @gaocegege in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Triple-Z
Copy link
Contributor Author

I have rebased the main branch to this branch, the tests passed now, PTAL @gaocegege @VoVAllen

@gaocegege
Copy link
Member

LGTM!

@gaocegege gaocegege merged commit d0134d3 into tensorchord:main Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

enhancement(CLI): zsh-completion warning
2 participants