Skip to content

Commit

Permalink
docs: Prioritize package installation over curl | sh installation
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jul 19, 2022
1 parent 5fdc580 commit 24db084
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions assets/chezmoi.io/docs/install.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,6 @@

The latest version of chezmoi is {{ $version }}.

## One-line binary install

Install the correct binary for your operating system and architecture in `./bin`
with a single command:

=== "curl"

```sh
sh -c "$(curl -fsLS https://chezmoi.io/get)"
```

=== "wget"

```sh
sh -c "$(wget -qO- https://chezmoi.io/get)"
```

=== "PowerShell"

```powershell
(irm -useb https://chezmoi.io/get.ps1) | powershell -c -
```

!!! hint

If you already have a dotfiles repo using chezmoi on GitHub at
`https://github.com/$GITHUB_USERNAME/dotfiles` then you can install
chezmoi and your dotfiles with the single command:

```sh
sh -c "$(curl -fsLS https://chezmoi.io/get)" -- init --apply $GITHUB_USERNAME
```

!!! hint

To install the chezmoi binary in a different directory, use the `-b` option,
for example:

```sh
sh -c "$(curl -fsLS https://chezmoi.io/get)" -- -b $HOME/.local/bin
```

## One-line package install

Install chezmoi with your package manager with a single command:
Expand Down Expand Up @@ -157,6 +115,48 @@ Install chezmoi with your package manager with a single command:
pkg install application/chezmoi
```

## One-line binary install

Install the correct binary for your operating system and architecture in `./bin`
with a single command:

=== "curl"

```sh
sh -c "$(curl -fsLS https://chezmoi.io/get)"
```

=== "wget"

```sh
sh -c "$(wget -qO- https://chezmoi.io/get)"
```

=== "PowerShell"

```powershell
(irm -useb https://chezmoi.io/get.ps1) | powershell -c -
```

!!! hint

If you already have a dotfiles repo using chezmoi on GitHub at
`https://github.com/$GITHUB_USERNAME/dotfiles` then you can install
chezmoi and your dotfiles with the single command:

```sh
sh -c "$(curl -fsLS https://chezmoi.io/get)" -- init --apply $GITHUB_USERNAME
```

!!! hint

To install the chezmoi binary in a different directory, use the `-b` option,
for example:

```sh
sh -c "$(curl -fsLS https://chezmoi.io/get)" -- -b $HOME/.local/bin
```

## Download a pre-built Linux package

Download a package for your distribution and architecture.
Expand Down

0 comments on commit 24db084

Please sign in to comment.