tractordev / wanix

Experimental, local-first, web-native, Unix-like development environment
https://wanix.sh
MIT License
206 stars 11 forks source link

autorun.sh #74

Closed progrium closed 4 months ago

progrium commented 5 months ago

I expect to have two ways to customize what happens when you load a page with Wanix. One is to replace the shell that Wanix starts in the default console, which for now can be done by replacing the shell command. This issue proposes another that's done at the shell level of the built-in shell. If an autorun.sh shell script exists in /cmd or /sys/cmd, it will be run as if the user ran it as the first command.

The use case for this is to launch applications. A Wanix domain might be setup specifically to run a web application, and this would be one way to make it start that should also open up other bashrc-like customization and automation on session starts.