我的主要問題是當我運行$ gulp serve時出現錯誤zsh: command not found $。這是在安裝Yeoman webapp生成器之後。 我已經檢查了這些其它來源: commands not found on zsh「 zsh command not found issue Command not found - Oh-My-Zsh How to specify a custom
:vcs_info:似乎知道,如果你在一個git或HG目錄裏,如果你打開它: zstyle ':vcs_info:*' enable git hg
即,您可以修改您提示這種方式。 如何獲取該數據以便我可以編寫if條件?例如 if [[ $some_magic_zstyle_vcs_info_variable ]]; then
echo "I'm in a git dir!"
fi