Open ThatOneOcto opened 2 years ago
Hi ThatOneOcto. ZSH is not fully supported at this time, mostly because there is no developer in the team working on it. I guess the errors you are seeing are because of non-compabilities between Bash and ZSH.
The error lines that are mentioned in the output are from the assembled script. You can open it up and find those lines, then identify them in the source script (which has comments and is easy to read). Would you mind testing/checking what the -t option is needed for and whether there is an alternative for ZSH? With some luck, the fix is super easy.
Cheers
It seems there was the exact same issue with #15 , but it was not addressed. Let's see if we can pinpoint the issue this time ;)
Okay, I was thinking that but I just didn't I forgot why
[ "$(type -t include)" != 'function' ]&&{ include(){ { [ -z "$_IR" ]&&_IR="$PWD"&&cd "$(dirname "${BASH_SOURCE[0]}")"&&include "$1"&&cd "$_IR"&&unset _IR;}||{ local d="$PWD"&&cd "$(dirname "$PWD/$1")"&&. "$(basename "$1")"&&cd "$d";}||{ echo "Include failed $PWD->$1"&&exit 1;};};}
synth_shell_prompt()
I'll show you line 831 next
if [ "${BASH_SOURCE[0]}" == "${0}" ]; then
echo -e "Do not run this script, it will do nothing.\nPlease source it instead by running:\n"
echo -e "\t. ${BASH_SOURCE[0]}\n"
elif [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
synth_shell_prompt
fi
That's interesting! It seems to be caused (likely) by BASH_SOURCE[0]
. If you run echo $BASH_SOURCE[0]
in your terminal, what do you get? I suspect these lines, in the script, were not expecting to receive an empty line or whatever output zsh throws. The fix shouldn't be too hard
When I run the command, I am returned with nothing
Describe the bug When opening ZSH, I get this error
It doesn't show up in bash no error
To Reproduce Steps to reproduce the behavior: I haven't a clue
Expected behavior For the synth shell prompt to work