-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(zsh): ignore inserting zsh-completion if system don't have zsh sh…
…ell (#1025) * 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> * refact(zsh): use `~/.config/envd/` as a fallback directory Signed-off-by: Triple-Z <me@triplez.cn> * fix(zsh): uncomment the dirs Signed-off-by: Triple-Z <me@triplez.cn> * refact(zsh): use `fileutil.DefaultConfigDir` Signed-off-by: Triple-Z <me@triplez.cn> Signed-off-by: Triple-Z <me@triplez.cn>
- Loading branch information
Showing
1 changed file
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters