Update install script to support Windows

This commit is contained in:
Ajeet D'Souza 2023-04-30 15:05:51 +05:30
parent 56956779b2
commit 03df9d4d1f
2 changed files with 7 additions and 0 deletions

View File

@ -131,6 +131,12 @@ zoxide can be installed in 4 easy steps:
> | [Chocolatey] | `choco install zoxide` |
> | [conda-forge] | `conda install -c conda-forge zoxide` |
> | [Scoop] | `scoop install zoxide` |
>
> If you're using Cygwin, Git Bash, or MSYS2, use the install script instead:
>
> ```sh
> curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
> ```
</details>

View File

@ -55,6 +55,7 @@ main() {
esac
ensure mkdir -p "$_bin_dir"
ensure cp "$_bin_name" "$_bin_dir"
ensure chmod +x "$_bin_dir/$_bin_name"
echo "Installed zoxide to $_bin_dir"
# Install manpages.