diff options
| author | Yaroslav Sapak <145782146+IaroslavSapak@users.noreply.github.com> | 2025-10-31 04:22:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-30 19:22:01 -0700 |
| commit | 43e880ba45d2785ed0dda3dcaf7b5cd610eb3063 (patch) | |
| tree | 6560ebcab2ab9433c85ba21cbac2be6c15e3fa6b | |
| parent | 1dc87da9e6d67c4057303124d2ebcd8c93eb6141 (diff) | |
| download | zsh-43e880ba45d2785ed0dda3dcaf7b5cd610eb3063.tar.gz zsh-43e880ba45d2785ed0dda3dcaf7b5cd610eb3063.tar.bz2 zsh-43e880ba45d2785ed0dda3dcaf7b5cd610eb3063.zip | |
feat(vscode): add support for Cursor (#13382)
| -rw-r--r-- | plugins/vscode/README.md | 10 | ||||
| -rw-r--r-- | plugins/vscode/vscode.plugin.zsh | 4 |
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 |
