summaryrefslogtreecommitdiff
path: root/plugins/vscode
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vscode')
-rw-r--r--plugins/vscode/README.md10
-rw-r--r--plugins/vscode/vscode.plugin.zsh4
2 files changed, 10 insertions, 4 deletions
diff --git a/plugins/vscode/README.md b/plugins/vscode/README.md
index f91b533c9..7c746d3d3 100644
--- a/plugins/vscode/README.md
+++ b/plugins/vscode/README.md
@@ -1,7 +1,6 @@
# VS Code
-This plugin provides useful aliases to simplify the interaction between the command line and VS Code or
-VSCodium editor.
+This plugin provides useful aliases to simplify the interaction between the command line and VS Code, VSCodium, or Cursor editor.
To start using it, add the `vscode` plugin to your `plugins` array in `~/.zshrc`:
@@ -18,6 +17,7 @@ You can install either:
- VS Code (code)
- VS Code Insiders (code-insiders)
- VSCodium (codium)
+- Cursor (cursor)
### MacOS
@@ -33,6 +33,10 @@ open the Command Palette via (F1 or ⇧⌘P) and type shell command to find the
> Shell Command: Install 'codium' command in PATH
+For Cursor, open the Command Palette via (F1 or ⌘⇧P) and type shell command to find the Shell Command:
+
+> Shell Command: Install 'cursor' command in PATH
+
## Using multiple flavours
If for any reason, you ever require to use multiple flavours of VS Code i.e. VS Code (stable) and VS Code
@@ -43,7 +47,7 @@ executable.
```zsh
ZSH_THEME=...
-# Choose between one [code, code-insiders or codium]
+# Choose between one [code, code-insiders, codium, or cursor]
# The following line will make the plugin to open VS Code Insiders
# Invalid entries will be ignored, no aliases will be added
VSCODE=code-insiders
diff --git a/plugins/vscode/vscode.plugin.zsh b/plugins/vscode/vscode.plugin.zsh
index 77367bcac..1635a9832 100644
--- a/plugins/vscode/vscode.plugin.zsh
+++ b/plugins/vscode/vscode.plugin.zsh
@@ -1,4 +1,4 @@
-# VS Code (stable / insiders) / VSCodium zsh plugin
+# VS Code (stable / insiders) / VSCodium / Cursor zsh plugin
# Authors:
# https://github.com/MarsiBarsi (original author)
# https://github.com/babakks
@@ -19,6 +19,8 @@ if [[ -z "$VSCODE" ]]; then
VSCODE=code-insiders
elif which codium &>/dev/null; then
VSCODE=codium
+ elif which cursor &>/dev/null; then
+ VSCODE=cursor
else
return
fi