Skip to content
New issue

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

double prompt printing on clear cmd #1414

Open
lukejans opened this issue Dec 22, 2023 · 2 comments
Open

double prompt printing on clear cmd #1414

lukejans opened this issue Dec 22, 2023 · 2 comments
Labels
bug Bug related to code base, behavior, displaying, etc.

Comments

@lukejans
Copy link

lukejans commented Dec 22, 2023

The problem

I recently added the following to my spaceshiprc.zsh configuration.

# Prompt-level options
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_PROMPT_SEPARATE_LINE=false

But for a yet to be found reason when using the clear command the screen clears correctly but prints the command prompt twice. I've also noticed other terminal tools stopped working due to this change in the spaceship configuration such as codeWhisper by amazon (previously fig.io).

spaceshiphelp.mov

Relevant Zsh configuration

# file: .zshrc
## spaceship
source "/opt/homebrew/opt/spaceship/spaceship.zsh"


# file: spaceshiprc.zsh
## Prompt-level options
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_PROMPT_SEPARATE_LINE=false

## Time
SPACESHIP_TIME_SHOW=true
SPACESHIP_TIME_COLOR=magenta

## Char
SPACESHIP_CHAR_SYMBOL=''
SPACESHIP_CHAR_SUFFIX=' '
SPACESHIP_CHAR_COLOR_SUCCESS=green
SPACESHIP_CHAR_COLOR_FAILURE=red

## Python
SPACESHIP_PYTHON_SHOW=true

# Execution time
SPACESHIP_EXEC_TIME_SHOW=true
SPACESHIP_EXEC_TIME_COLOR=red

What is version of Spaceship are you using?

4.2.0

What is version of Zsh are you using?

5.9

What operation system are you running?

macOS 14.1.2

Do you use any Zsh framework or plugin manager?

None

Which terminal emulator do you use?

Hyper

Additional information

No response

@lukejans lukejans added the bug Bug related to code base, behavior, displaying, etc. label Dec 22, 2023
@lukejans
Copy link
Author

lukejans commented Jan 2, 2024

confirmed that the issue is related to:

# Prompt-level options
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_PROMPT_SEPARATE_LINE=false

removing the following: SPACESHIP_PROMPT_ADD_NEWLINE=false stops the prompt from printing twice but still breaks other tools unless i also remove: SPACESHIP_PROMPT_SEPARATE_LINE=false.

possibly related to this file /spaceship-prompt/sections/line_sep.zsh

@ortonomy
Copy link

ortonomy commented Feb 3, 2024

I am seeing this bug, but I'm seeing it just by opening a new session/tab/pane:

(macos, fresh install, warp terminal)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug related to code base, behavior, displaying, etc.
Development

No branches or pull requests

2 participants