We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: no such file or directory: /c/Program zsh: no such file or directory: /c/Program
My prompt :)
starship init zsh outputs things like:
starship init zsh
PROMPT='$(''/c/Program Files/starship/bin/starship.exe'' prompt --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")' RPROMPT='$(''/c/Program Files/starship/bin/starship.exe'' prompt --right --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")' PROMPT2="$('/c/Program Files/starship/bin/starship.exe' prompt --continuation)"
Escaping the space like:
PROMPT='$(''/c/Program\ Files/starship/bin/starship.exe'' prompt --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")' RPROMPT='$(''/c/Program\ Files/starship/bin/starship.exe'' prompt --right --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")' PROMPT2="$('/c/Program\ Files/starship/bin/starship.exe' prompt --continuation)"
Seems to work.
eval "$(starship init zsh)"
N/A
The text was updated successfully, but these errors were encountered:
zsh: Fix zsh init when starship is in a directory with spaces.
c897eaf
Fixes starship#6333
fix(zsh): Fix zsh init when starship is in a directory with spaces.
9ed16ab
::STARSHIP:: is already properly quoted in init/mod.rs, so this seems to work nicely. Fixes starship#6333
Successfully merging a pull request may close this issue.
Current Behavior
Expected Behavior
My prompt :)
Possible Solution
starship init zsh
outputs things like:Escaping the space like:
Seems to work.
Environment
Relevant Shell Configuration
Starship Configuration
N/A
The text was updated successfully, but these errors were encountered: