raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
4.05k stars 133 forks source link

Multiplatform configuration #755

Closed raphamorim closed 1 week ago

raphamorim commented 2 weeks ago

Currently Rio has no way to have different shell, window and navigation per OS.

So, we should introduce a new property called platform, that allow overwrite per OS.

This new property will allow users to configure on demand

[shell]
# default (in this case will be used only on MacOS)
program = "/bin/fish"
args = ["--login"]

[platform]
# Microsoft Windows overwrite
windows.shell.program = "pwsh"
windows.shell.args = ["-l"]

# Linux overwrite
linux.shell.program = "tmux"
linux.shell.args = ["new-session", "-c", "/var/www"]
crispy-strawberry commented 2 weeks ago

I think I've got this working.

raphamorim commented 2 weeks ago

👀 would like to do a PR?

crispy-strawberry commented 2 weeks ago

I will. Will tomorrow be fine?

raphamorim commented 2 weeks ago

For sure, no stress. take your time!

raphamorim commented 2 weeks ago

will assign this issue to you if is ok