Default shell

Setting Rsh as default shell on your terminal

Terminal Platform Instructions
GNOME Terminal Linux & BSDs Open Edit > Preferences. In the right-hand panel, select the Command tab, tick Run a custom command instead of my shell, and set Custom command to the path to Rsh.
GNOME Console Linux & BSDs Type the command gsettings set org.gnome.Console shell "['/usr/bin/rsh']" (replace /usr/bin/rsh with the path to Rsh). Equivalently, use dconf Editoropen in new window to edit the /org/gnome/Console/shell key.
Konsole Linux & BSDs Open Settings > Edit Current Profile. Set Command to the path to Rsh.
XFCE Terminal Linux & BSDs Open Edit > Preferences. Check Run a custom command instead of my shell, and set Custom command to the path to Rsh.
Terminal.app macOS Open Terminal > Preferences. Ensure you are on the Profiles tab, which should be the default tab. In the right-hand panel, select the Shell tab. Tick Run command, put the path to Rsh in the textbox, and untick Run inside shell.
iTerm2 macOS Open iTerm > Preferences. Select the Profiles tab. In the right-hand panel under Command, change the dropdown from Login Shell to Custom Shell, and put the path to Rsh in the textbox.
Windows Terminal Windows Press Ctrl+, to open Settings. Go to Add a new profile > New empty profile. Fill in the 'Name' and enter path to Rsh in the 'Command line' textbox. Go to Startup option and select Rsh as the 'Default profile'. Hit Save.

Setting Rsh as login shell (Linux, BSD & macOS)

WARNING

Rsh is still in development and is not intended to be POSIX compliant. Be aware that some programs on your system might assume that your login shell is POSIXopen in new window compatible. Breaking that assumption can lead to unexpected issues.

To set the login shell you can use the chshopen in new window command. Some Linux distributions have a list of valid shells located in /etc/shells and will disallow changing the shell until Rsh is in the whitelist. You may see an error similar to the one below if you haven't updated the shells file:

chsh: /home/username/.cargo/bin/rsh is an invalid shell

You can add Rsh to the list of allowed shells by appending your Rsh binary to the shells file. The path to add can be found with the command which rsh, usually it is $HOME/.cargo/bin/rsh.