-
Notifications
You must be signed in to change notification settings - Fork 3
/
add-to-path.qmd
30 lines (16 loc) · 1.44 KB
/
add-to-path.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: "Launch Positron from a Terminal"
---
If Positron is on your PATH, you can launch it from the terminal:
- Type `positron .` to open Positron in the current folder, _or_
- `positron foo` to open Positron in a custom folder of your choice.
See the instructions below on how to add Positron to your PATH based on operating system.
### macOS
After you have installed Positron, you can add it to your PATH via the Command Palette. Press `Cmd+Shift+P` to open the palette and type *Install 'positron' command in PATH*.
![Add Positron to your PATH](images/positron-path.png)
After you have executed this command once, Positron is added to your PATH. Restart your terminal to pick up the changes to your PATH.
### Windows
Positron installers on Windows include an option to add a `positron` command to your PATH. This installation option is selected by default.
![Windows installer option Add to PATH](images/installer-windows-add-to-path.png){width=700}
If you had cleared this option during installation, you can manually add the `bin` folder of your Positron installation to your PATH. For a System level installation, this folder is located at `C:\Program Files\Positron\bin` by default. For a User level installation, this folder is located at `C:\Users\username\AppData\Local\Programs\Positron\bin` by default. You will need to restart your terminal after updating your PATH.
Once Positron is on your PATH, you can use a terminal to launch Positron.