Skip to content

Commit

Permalink
docs: Use chezmoi.io/get instead of deprecated git.io/chezmoi
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 14, 2022
1 parent 724227b commit 81cb750
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ With chezmoi, you can install chezmoi and your dotfiles on a new, empty machine
with a single command:

```console
$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply <github-username>
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply <github-username>
```

Updating your dotfiles on any machine is a single command:
Expand Down
2 changes: 1 addition & 1 deletion assets/chezmoi.io/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ With chezmoi, you can install chezmoi and your dotfiles on a new, empty machine
with a single command:

```console
$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply <github-username>
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply <github-username>
```

Updating your dotfiles on any machine is a single command:
Expand Down
4 changes: 2 additions & 2 deletions assets/scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ function unpack-file {
You can specify a particular git tag using the -Tag option.
Examples:
'$params = "-BinDir ~/bindir"', (iwr https://git.io/chezmoi.ps1).Content | powershell -c -
'$params = "-Tag v1.8.10"', (iwr https://git.io/chezmoi.ps1).Content | powershell -c -
'$params = "-BinDir ~/bindir"', (iwr https://chezmoi.io/get.ps1).Content | powershell -c -
'$params = "-Tag v1.8.10"', (iwr https://chezmoi.io/get.ps1).Content | powershell -c -
#>
function Install-Chezmoi {
[CmdletBinding(PositionalBinding=$false)]
Expand Down
8 changes: 4 additions & 4 deletions docs/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ arguments to the newly installed chezmoi binary. If your dotfiles repo is
shell:

```console
$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply <github-username>
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply <github-username>
```

If your dotfiles repo has a different name to `dotfiles`, or if you host your
Expand All @@ -218,7 +218,7 @@ chezmoi, including the source directory and chezmoi's configuration directory,
with a single command:

```console
$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --one-shot <github-username>
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --one-shot <github-username>
```

---
Expand Down Expand Up @@ -1589,9 +1589,9 @@ if [ ! "$(command -v chezmoi)" ]; then
bin_dir="$HOME/.local/bin"
chezmoi="$bin_dir/chezmoi"
if [ "$(command -v curl)" ]; then
sh -c "$(curl -fsLS https://git.io/chezmoi)" -- -b "$bin_dir"
sh -c "$(curl -fsLS https://chezmoi.io/get)" -- -b "$bin_dir"
elif [ "$(command -v wget)" ]; then
sh -c "$(wget -qO- https://git.io/chezmoi)" -- -b "$bin_dir"
sh -c "$(wget -qO- https://chezmoi.io/get)" -- -b "$bin_dir"
else
echo "To install chezmoi, you must have curl or wget installed." >&2
exit 1
Expand Down
12 changes: 6 additions & 6 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@ Install the correct binary for your operating system and architecture in `./bin`
with a single command:

```console
$ sh -c "$(curl -fsLS git.io/chezmoi)"
$ sh -c "$(curl -fsLS chezmoi.io/get)"
```

Or, if you have `wget` instead of `curl`:

```console
$ sh -c "$(wget -qO- git.io/chezmoi)"
$ sh -c "$(wget -qO- chezmoi.io/get)"
```

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:

```console
$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply <github-username>
$ sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply <github-username>
```

Or on systems with Powershell, you can use one of the following command:

```
# To install in ./bin
(iwr -UseBasicParsing https://git.io/chezmoi.ps1).Content | powershell -c -
(iwr -UseBasicParsing https://chezmoi.io/get.ps1).Content | powershell -c -
# To install in another location
'$params = "-BinDir ~/other"', (iwr https://git.io/chezmoi.ps1).Content | powershell -c -
'$params = "-BinDir ~/other"', (iwr https://chezmoi.io/get.ps1).Content | powershell -c -
# For information about other options, run
'$params = "-?"', (iwr https://git.io/chezmoi.ps1).Content | powershell -c -
'$params = "-?"', (iwr https://chezmoi.io/get.ps1).Content | powershell -c -
```

---
Expand Down

0 comments on commit 81cb750

Please sign in to comment.