How to open cursor from terminal

It works for me. Thanks

thank you it was helpful

1 Like

this works and i have also been trying to run it in the background using & or nohup but hard luck it closes when i close the terminal

cursor() {
    /opt/cursor.AppImage --no-sandbox "$@" &
}
cursor() {
    nohup /opt/cursor.AppImage --no-sandbox "$@" > /dev/null 2>&1 &
}
1 Like

this is not okay. i’m paying for pro (edit: paid), and it works on Mac, but the install script to get the majorly useful CLI command still fails in Linux and is not available in the command palette. I guess Linux simply isn’t supported. And no, I’m not hacking around to get something working when I’m paying money for it…

1 Like

Just for other people coming here, this is my final version (so far). This allows me to run the cursor command without seeing any output, and be able to close the terminal without exiting cursor. The extra parenthesis launches it in a subshell, suppressing the output from nohup

cursor() {
  # Run the cursor command and suppress background process output completely
  (nohup cursor "$@" >/dev/null 2>&1 &)
}
1 Like

function cursor() {
open -a ‘Cursor’ $@
}
works fine for me

ubuntu

Yep. A workaround its to add to your ‘.bashrc’ an alias.
alias cursor='~/Desktop/Cursor.AppImage'
obs: and maybe you will have to use the no sandbox flag --no-sandbox

Thanks dude, also your solution worked perfectly on ubuntu 24 @mvavassori

Check. :ok_hand:t2::ok_hand:

I work for a company where we want to roll out cursor but our machines don’t have admin privileges which means we can’t run OSAScript commands.

OSAScript is super outdated anyways is there another way of installing the cursor command without needing admin permissions or manually adding a bash script?

1 Like

cc @danperks

Hey, I’ll pass this to the team, but I don’t believe there is a way to install the Cursor shell command without having admin, or doing some manual work to install the shell command right now!

1 Like

Thank you!

./Cursor.AppImage should suffice?

This is the best so far in Ubuntu, zshrc

nano ~/.zshrc

Then paste this to the end of the line

cursor() {
  ( nohup /home/yourusername/yourpathto/cursor.AppImage --no-sandbox "$@" >/dev/>
}

nohup make sure it wont kill if the opening terminal be killed
dev/null make sure of clean log

then

source ~/.zshrc

it may open cursor for the first time

then close terminal and open a new terminal session.

You can try:

cursor .
cursor something.py

In Fedora Workstation 40, I just added this to my .zshrc file:

cursor() {
  (nohup /opt/cursor.appimage --no-sandbox "$@" >/dev/null 2>&1 &)
}
1 Like