diff --git a/README.md b/README.md index 005c581..29f8a45 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,30 @@ Built for people vim users who enjoy claude code, ghostty panes and TUIs - Auto-run tests on file write - Claude code slash command to generate problems, tests on demand -## Installation +## Install + +```bash +curl -fsSL https://raw.githubusercontent.com/harivansh-afk/veetcode/main/install.sh | bash +``` + +Then run: + +```bash +veet +``` + +
+Manual install ```bash git clone https://github.com/harivansh-afk/veetcode.git cd veetcode uv sync -``` - -## Run - -```bash ./veet ``` +
+ ## Workflow 1. `./veet` — opens problem list diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..461cbbd --- /dev/null +++ b/install.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +set -e + +REPO="harivansh-afk/veetcode" +INSTALL_DIR="$HOME/.veetcode" + +echo "Installing veetcode..." + +# Check for uv +if ! command -v uv &> /dev/null; then + echo "Installing uv..." + curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" +fi + +# Clone or update +if [ -d "$INSTALL_DIR" ]; then + echo "Updating existing installation..." + cd "$INSTALL_DIR" && git pull +else + echo "Cloning repository..." + git clone "https://github.com/$REPO.git" "$INSTALL_DIR" +fi + +cd "$INSTALL_DIR" +uv sync + +# Create symlink +mkdir -p "$HOME/.local/bin" +ln -sf "$INSTALL_DIR/veet" "$HOME/.local/bin/veet" + +echo "" +echo "✓ veetcode installed!" +echo "" +echo "Run: veet" +echo "" +echo "Make sure ~/.local/bin is in your PATH:" +echo ' export PATH="$HOME/.local/bin:$PATH"' +