Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨
https://rosettea.github.io/Hilbish/
MIT License
496 stars 21 forks source link

how to use / what to expect / unexpected behavior #281

Closed m-faith closed 8 months ago

m-faith commented 8 months ago

I have hilbish installed and working but I'm surprised by:

m ~/code/docs ∆ date
Sat Dec 30 12:39:50 PM EST 2023
m ~/code/docs ∆ d
hilbish: d not found
m ~/code/docs ∆ d = date
m ~/code/docs ∆ d
hilbish: d not found
m ~/code/docs ∆ d = date; print(d)
nil

...I'm expecting to be able to assign a shell command's output (date in this case) to a variable but it doesn't work.

Is it possible to do that? Is there documentation around use of lua/shell syntax?

TorchedSammy commented 8 months ago

to get output from a command in lua, use hilbish.run

you can run either lua or shell script interactively, but not both as you're trying to do.

m-faith commented 7 months ago

gotcha, thank you!