Diff
1diff --git a/plugins/vscode/README.md b/plugins/vscode/README.md
2index f91b533c99c5c8244733b536df79c864b1fa9c6d..7c746d3d39b56e1df04df27e52ad28fd860e256c 100644
3--- a/plugins/vscode/README.md
4+++ b/plugins/vscode/README.md
5@@ -1,7 +1,6 @@
6 # VS Code
7
8-This plugin provides useful aliases to simplify the interaction between the command line and VS Code or
9-VSCodium editor.
10+This plugin provides useful aliases to simplify the interaction between the command line and VS Code, VSCodium, or Cursor editor.
11
12 To start using it, add the `vscode` plugin to your `plugins` array in `~/.zshrc`:
13
14@@ -18,6 +17,7 @@ You can install either:
15 - VS Code (code)
16 - VS Code Insiders (code-insiders)
17 - VSCodium (codium)
18+- Cursor (cursor)
19
20 ### MacOS
21
22@@ -33,6 +33,10 @@ open the Command Palette via (F1 or ⇧⌘P) and type shell command to find the
23
24 > Shell Command: Install 'codium' command in PATH
25
26+For Cursor, open the Command Palette via (F1 or ⌘⇧P) and type shell command to find the Shell Command:
27+
28+> Shell Command: Install 'cursor' command in PATH
29+
30 ## Using multiple flavours
31
32 If for any reason, you ever require to use multiple flavours of VS Code i.e. VS Code (stable) and VS Code
33@@ -43,7 +47,7 @@ executable.
34 ```zsh
35 ZSH_THEME=...
36
37-# Choose between one [code, code-insiders or codium]
38+# Choose between one [code, code-insiders, codium, or cursor]
39 # The following line will make the plugin to open VS Code Insiders
40 # Invalid entries will be ignored, no aliases will be added
41 VSCODE=code-insiders
42diff --git a/plugins/vscode/vscode.plugin.zsh b/plugins/vscode/vscode.plugin.zsh
43index 77367bcac0df8919c64144e7b076b526a98af627..1635a98320d5c1302056c1a9cf5076c3dd3bc71c 100644
44--- a/plugins/vscode/vscode.plugin.zsh
45+++ b/plugins/vscode/vscode.plugin.zsh
46@@ -1,4 +1,4 @@
47-# VS Code (stable / insiders) / VSCodium zsh plugin
48+# VS Code (stable / insiders) / VSCodium / Cursor zsh plugin
49 # Authors:
50 # https://github.com/MarsiBarsi (original author)
51 # https://github.com/babakks
52@@ -19,6 +19,8 @@ if [[ -z "$VSCODE" ]]; then
53 VSCODE=code-insiders
54 elif which codium &>/dev/null; then
55 VSCODE=codium
56+ elif which cursor &>/dev/null; then
57+ VSCODE=cursor
58 else
59 return
60 fi