This commit is contained in:
Paul Gauthier 2024-12-16 16:06:06 -08:00
parent 9b16f2139d
commit ecbac76cba
2 changed files with 25 additions and 4 deletions

View file

@ -19,15 +19,33 @@ aider-install will automatically install a separate version of python3.12 to use
There are some [optional install steps](/docs/install/optional.html) you could consider. There are some [optional install steps](/docs/install/optional.html) you could consider.
See the [usage instructions](https://aider.chat/docs/usage.html) to start coding with aider. See the [usage instructions](https://aider.chat/docs/usage.html) to start coding with aider.
## One-liner for Windows ## One-liners
This one-liner will install aider, along with python3.12 if needed. These one-liners will install aider, along with python3.12 if needed.
It is based on the [uv installer for Windows](https://docs.astral.sh/uv/getting-started/installation/). They are based on the
[uv installers](https://docs.astral.sh/uv/getting-started/installation/).
#### Windows
```powershell ```powershell
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex" powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"
``` ```
#### Mac and Linux
Use curl to download the script and execute it with sh:
```bash
$ curl -LsSf https://aider.chat/install.sh | sh
```
If your system doesn't have curl, you can use wget:
```bash
$ wget -qO- https://aider.chat/install.sh | sh
```
## Install with uv ## Install with uv
A recommended way to install aider is with uv: A recommended way to install aider is with uv:

View file

@ -1172,7 +1172,7 @@ install() {
say " $_lib_name" say " $_lib_name"
done done
say "everything's installed!" say "uv is installed!"
# Avoid modifying the users PATH if they are managing their PATH manually # Avoid modifying the users PATH if they are managing their PATH manually
case :$PATH: case :$PATH:
@ -1203,6 +1203,9 @@ install() {
fi fi
fi fi
say ""
say "Installing aider..."
say ""
# Install aider-chat using the newly installed uv # Install aider-chat using the newly installed uv
ensure "${_install_dir}/uv" tool install --force --python python3.12 aider-chat@latest ensure "${_install_dir}/uv" tool install --force --python python3.12 aider-chat@latest
} }