sindresorhus / pure

Pretty, minimal and fast ZSH prompt
MIT License
13.22k stars 977 forks source link

Fix interpreter and improve install path detection #611

Closed mafredri closed 3 years ago

mafredri commented 3 years ago

Change interpreter from [[ to [ for better shell compatibility (sh).

Check target path for /bin/zsh and /usr/bin/zsh instead of assuming the path. This avoids the creation of nonsense paths. For instance, on Debian the interpreter is located at /usr/bin/zsh, however, the path is actually /usr/local/share/zsh/site-functions. Creating the folder in /usr/share/zsh would be a source of confusion.

Fixes #610