make_launcher {rix}R Documentation

Create a startup script to launch an editor inside of a Nix shell

Description

Create a startup script to launch an editor inside of a Nix shell

Usage

make_launcher(editor, project_path)

Arguments

editor

Character, the command to launch the editor. See the "Details" section below for more information.

project_path

Character, where to write the launcher, for example "/home/path/to/project". The file will thus be written to the file "/home/path/to/project/start-editor.sh". If the folder does not exist, it will be created.

Details

This function will write a launcher to start an IDE inside of a Nix shell. With a launcher, you only need to execute it instead of first having to drop into the shell using nix-shell and then type the command to run the IDE. For security reasons, this script is not executable upon creation, so you need to make it executable first by running ⁠chmod +x start-editor.sh⁠ (replace editor with whichever editor you use). You don’t need this launcher if you use direnv; see vignette("e-configuring-ide") for more details.

Value

Nothing, writes a script.

Examples

available_dates()

[Package rix version 0.16.0 Index]