Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open project from command line #4049

Closed
roaldarbol opened this issue Jul 17, 2024 · 6 comments
Closed

Open project from command line #4049

roaldarbol opened this issue Jul 17, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@roaldarbol
Copy link

It would be great to be able to open a specific project from the command line, so having the positron CLI command. Essentially identical behaviour to code for VSCode. So positron . opens the present folder, positron my-project opens my-project.

@roaldarbol roaldarbol added the enhancement New feature or request label Jul 17, 2024
@juliasilge
Copy link
Contributor

You can already do this! Run this command one time:

Screenshot 2024-07-17 at 8 32 59 AM

And then the command will be on your path. You can do positron . if you are in the folder you want to use as a workspace, or positron my-project if you are one folder up.

@roaldarbol
Copy link
Author

Ah, cool - thanks!🥳

@drmowinckels
Copy link

WHere does Positron install to, by default?

I cant use the solution here as I have stupid IT admin rights restricting me, so I'll need to fix this manually through my bash profile.

@juliasilge
Copy link
Contributor

@drmowinckels It installs into whatever the "typical" place is for you and your OS; it is also the same place that VS Code installs, if that has been helpful for you when you set up VS Code. On my Mac, it is installed to the Applications folder.

@drmowinckels
Copy link

right, needed to do some digging, and after remembering its a clone of vscode (whose command line is code), I found it.

Just in case someone is looking to manually bind or alias. I have the following on my mac

alias positron="/Applications/Positron.app/Contents/Resources/app/bin/code"

@emilyriederer
Copy link

I'm just here to say thank you because I was pining for same and huzzah!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants