# Cursor **Repository Path**: Osbornjie/cursor ## Basic Information - **Project Name**: Cursor - **Description**: oh-my-zsh cursor plugin插件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-14 - **Last Updated**: 2024-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cursor An Oh My Zsh plugin to open files in cursor 原仓库:https://github.com/valentinocossar/vscode ### Requirements * [Cursor](https://www.cursor.com/) # Installation/安装 #### Manual/手动 1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/cursor`. * 将此存储库克隆到您计算机上的某个位置。本指南将假设为 `~/.zsh/cursor`。 ```sh git clone https://gitee.com/Osbornjie/cursor.git ~/.zsh/cursor ``` 2. Add the following to your `.zshrc`: * 将以下内容添加到您的 `.zshrc`: ```sh source ~/.zsh/cursor/cursor.plugin.zsh ``` 3. Start a new terminal session. * 启动一个新的终端会话。 #### Oh My Zsh 1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`) * 将此存储库克隆到 `$ZSH_CUSTOM/plugins`(默认是 `~/.oh-my-zsh/custom/plugins`) ```sh git clone https://gitee.com/Osbornjie/cursor.git $ZSH_CUSTOM/plugins/cursor ``` 2. Add the plugin to the list of plugins for Oh My Zsh to load: * 将插件添加到 Oh My Zsh 要加载的插件列表中: ```sh plugins=(cursor) ``` 3. Start a new terminal session. * 启动一个新的终端会话。 ### Usage/使用说明 * If `cs` command is called without an argument, launch Cursor. * 如果调用 `cs` 命令而不带参数,则启动 Cursor。 * If `cs` is passed a directory, `cd` to it and open it in Cursor. * 如果传递一个目录给 `cs`,则 `cd` 到该目录并在 Cursor 中打开它。 * If `csa` is passed a directory, `cd` to it and open it in the last active Cursor window. * 如果传递一个目录给 `csa`,则 `cd` 到该目录并在最后一个活动的 Cursor 窗口中打开它。 * If `cs` is passed a file, open it in Cursor. * 如果传递一个文件给 `cs`,则在 Cursor 中打开它。 * If `csa` is passed a file, open it in the last active Cursor window. * 如果传递一个文件给 `csa`,则在最后一个活动的 Cursor 窗口中打开它。 * If `cst` command is called, it is equivalent to `cs .`, opening the current folder in Cursor. * 如果调用 `cst` 命令,则等同于 `cs .`,在 Cursor 中打开当前文件夹。 * If `csta` command is called, it is equivalent to `cs -a .`, opening the current folder in the last active Cursor window. * 如果调用 `csta` 命令,则等同于 `cs -a .`,在最后一个活动的 Cursor 窗口中打开当前文件夹。 * If `scs` command is called, it is like `sudo cs`, opening the file or folder in Cursor. Useful for editing system protected files. * 如果调用 `scs` 命令,则类似于 `sudo cs`,在 Cursor 中打开文件或文件夹。适用于编辑系统保护的文件。 * If `scsa` command is called, it is like `sudo cs -a`, opening the file or folder in the last active Cursor window. Useful for editing system protected files. * 如果调用 `scsa` 命令,则类似于 `sudo cs -a`,在最后一个活动的 Cursor 窗口中打开文件或文件夹。适用于编辑系统保护的文件。