From 03df9d4d1f189e50e9d4b811b33c9927342a491a Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sun, 30 Apr 2023 15:05:51 +0530 Subject: [PATCH] Update install script to support Windows --- README.md | 6 ++++++ install.sh | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 2070286..01587de 100644 --- a/README.md +++ b/README.md @@ -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 + > ``` diff --git a/install.sh b/install.sh index 9f0784c..2ba77bb 100755 --- a/install.sh +++ b/install.sh @@ -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.