ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
22.02k stars 536 forks source link

Installation using shell script is not working in macOS #812

Closed pravusid closed 4 months ago

pravusid commented 4 months ago

Installation using shell script requires sudo permission since v2 install script. After typing the correct password, installation was aborted. (but ... I also installed it - same shell script - in arch linux and it worked )

$ curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
Detected architecture: aarch64-apple-darwin
Downloaded package: zoxide.tar.gz
Password: ****
chmod: --: No such file or directory
Error: command failed: try_sudo chmod +x -- /Users/username/.local/bin/zoxide

The latest release (v0.9.4) has no problem and it doesn't require sudo permission.

$ curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/v0.9.4/install.sh | sh
Detected architecture: aarch64-apple-darwin
Downloaded package: zoxide.tar.gz
Installed zoxide to /Users/usernamelocal/bin
Installed manpages to /Users/username/.local/share/man

zoxide is installed!
ajeetdsouza commented 4 months ago

Fixed, thanks! https://github.com/ajeetdsouza/zoxide/commit/ae33940331a0e71c5cbf46fd40166d683323b699