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

fix: exit if there is no tty with `-i` flag #282

Closed TorchedSammy closed 4 months ago

TorchedSammy commented 4 months ago

usually hilbish will check if there is a tty on startup but if -i is used it will not. so, hilbish should check if there is a tty before trying to read input. otherwise, exit afterwards.

the point of using -i somewhere there wouldnt be a tty would be to load the user config, as using -c skips it.