petronny / pinyin-completion

complete path name based upon the pinyin acronym of Chinese characters
GNU General Public License v3.0
63 stars 13 forks source link

Bug: 在 `if` 语句中定义 `_force_rehash` 函数无效 #4

Closed Firef0x closed 9 years ago

Firef0x commented 9 years ago

@petronny ,您好!

您在提交 https://github.com/petronny/pinyin-completion/commit/48b6f2be612208973729898145053919302c10c4 中作出的更改依然未能解决问题。我没有学习过 Zsh 的语法,但是我发现在 if 语句中定义 _force_rehash 函数是无效的, Issue #1 中出现的错误又再次出现。我看了一下 grml-zsh-config 中的同名函数,它们应该是一模一样的,所以再次定义应该不会导致什么问题。即使为了安全起见,也建议采用将函数 _force_rehash 重命名的办法。在此附上本人的参考解决方案。

在此祝您新年愉快! :gift:

此致! :bow: