zap-zsh / zap

:zap: Zap is a minimal zsh plugin manager
https://www.zapzsh.com/
GNU General Public License v3.0
942 stars 33 forks source link

git not found when installing #179

Open pakyrs opened 4 months ago

pakyrs commented 4 months ago

Describe the bug

I have git installed and when launching the script it prompt me to install it. I can launch git and it is in my path, it's never been a problem anywhere else to be honest, a bit confused.

Steps to reproduce

zsh -x <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1 
...
+main:43> git clone -b release-v1 https://github.com/zap-zsh/zap.git /home/pacadmin/.local/share/zap
+main:43> echo '❌ Git is a dependency for zap. Please install git and try again.'
❌ Git is a dependency for zap. Please install git and try again.
+main:43> return 2
+/proc/self/fd/11:78> [[ 2 -eq 0 ]]
+/proc/self/fd/11:78> return
...
which zsh
/usr/bin/zsh

Expected behavior

Proceed to cloning and installing zap.

Screenshots and recordings

No response

OS / Linux distribution

Kali Rolling

Zsh version

5.9

Zap version

latest

Terminal emulator

Konsole

If using WSL on Windows, which version of WSL

None

Additional context

No response

mamaraddio commented 3 months ago

@pakyrs Clould you please show the complete output of zsh -x <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1 ?