skywind3000 / z.lua

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

Powershell on linux (pwsh) can't initialize #112

Closed 3usi9 closed 4 years ago

3usi9 commented 4 years ago

Error Message

Invoke-Expression: /home/bi/.config/powershell/Microsoft.PowerShell_profile.ps1:64
Line |
  64 |  iex ($(lua /home/bi/Code/z.lua/z.lua --init powershell) -join "`n")
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | An expression was expected after '('.

OS: Ubuntu 16.04 LTS Powershell 7.0.0

3usi9 commented 4 years ago

More accurate: at the generated file Line 4

ParserError: /home/bi/ans.ps1:4
Line |
   4 |  _zlua() {
     |        ~
     | An expression was expected after '('.
skywind3000 commented 4 years ago

The powershell support is only for Windows