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

Commits on Oct 16, 2022

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

    - 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>
    Triple-Z committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    d21b2b4 View commit details
    Browse the repository at this point in the history
  2. refact(zsh): use ~/.config/envd/ as a fallback directory

    Signed-off-by: Triple-Z <me@triplez.cn>
    Triple-Z committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    402fe6f View commit details
    Browse the repository at this point in the history
  3. fix(zsh): uncomment the dirs

    Signed-off-by: Triple-Z <me@triplez.cn>
    Triple-Z committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    d66fad3 View commit details
    Browse the repository at this point in the history
  4. refact(zsh): use fileutil.DefaultConfigDir

    Signed-off-by: Triple-Z <me@triplez.cn>
    Triple-Z committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    2308ed4 View commit details
    Browse the repository at this point in the history