skywind3000 / z.lua

:zap: A new cd command that helps you navigate faster by learning your habits.
MIT License
2.94k stars 137 forks source link

在git bash中报错 #199

Open ghrejoe opened 5 months ago

ghrejoe commented 5 months ago

vicfg $ (master) eval "$(lua.exe ~/z.lua --init bash)" bash: @echo: command not found bash: setlocal: command not found bash: syntax error near unexpected token `('

在git bash中执行以上命令报错,请看一下,谢谢

skywind3000 commented 5 months ago

你需要 msys 版本的 lua,而不是 windows 版本的 lua,windows 版本的 lua 以为自己运行于 windows 根本不认识 msys 那种路径形势。

ghrejoe commented 5 months ago

你需要 msys 版本的 lua,而不是 windows 版本的 lua,windows 版本的 lua 以为自己运行于 windows 根本不认识 msys 那种路径形势。

好的,谢谢,我找一下,刚准备删除这条。因为搜索了一下issues发现有人有同样问题。。