Closed AMATEURTOSS closed 1 month ago
Need some docs on how to restore the newline when using Starship. #765 has regressed basically
Just add the following to your starship.toml configuration file.
[line_break] disabled = false
Yep exactly - this should work on the Starship side!
It's also included in our SLP onboarding block when you update, if you're updating with Starship and Bash (for other shells, we have relevant commands to help you add a newline too!)
if it seems like the suggested starship line_break.disabled = false
doesn't work to restore the previous warp behaviour, it is because
[character]
disabled = true
if it seems like the suggested starship
line_break.disabled = false
doesn't work to restore the previous warp behaviour, it is because[character] disabled = true
Ah this sounds like the same bug faced here: https://github.com/warpdotdev/Warp/issues/5052#issuecomment-2187031645
Unfortunately, I believe that's an issue on the Starship side ðĒ. I don't think I see an issue filed by @onecrayon yet, so it might be worth filing at https://github.com/starship/starship/issues ð
@Advait-M check this right side frame:
so #3358 isnt solved yet
@daUnknownCoder Could you add more details to #3358 with what exactly is broken with tide? I'd like to keep this issue focused on rendering prompts in a single line.
Side-by-side pictures of Warp and another terminal would especially be useful, it's not clear to me from your picture what's broken. Thanks!
If anyone has any Starship guidance for this https://github.com/warpdotdev/Warp/issues/5052#issuecomment-2225696652 then I'd appreciate your help ððŧ
I want to keep new line for prompt in PS1 but it's not in warp setting option.
I tried setting line_break disabled to false but the prompt still single line.
Here's my starship.toml
for more context
# ~/.config/starship.toml
add_newline = true
command_timeout = 1000
format = """$os$username$hostname$kubernetes$directory$git_branch$git_status"""
# Drop ugly default prompt characters
[character]
success_symbol = ''
error_symbol = ''
# ---
[os]
format = '[$symbol](bold white) '
disabled = false
[os.symbols]
Windows = 'îŠ '
Arch = 'ó°Ģ'
Ubuntu = 'ï'
Macos = 'ó°ĩ'
# ---y
# Shows the username
[username]
style_user = 'white bold'
style_root = 'black bold'
format = '[$user]($style) '
disabled = true
show_always = true
# Shows the hostname
[hostname]
ssh_only = false
format = 'on [$hostname](bold yellow) '
disabled = true
# Shows current directory
[directory]
truncation_length = 2
truncation_symbol = 'âĶ/'
home_symbol = 'ó° ~'
read_only_style = '197'
read_only = ' ïĢ '
format = 'at [$path]($style)[$read_only]($read_only_style) '
# Shows current git branch
[git_branch]
symbol = 'ï '
format = 'via [$symbol$branch]($style)'
# truncation_length = 4
truncation_symbol = 'âĶ/'
style = 'bold green'
# Shows current git status
[git_status]
format = '[$all_status$ahead_behind]($style) '
style = 'bold green'
conflicted = 'ðģ'
up_to_date = ''
untracked = 'ïĐ '
ahead = 'âĄ${count}'
diverged = 'ââĄ${ahead_count}âĢ${behind_count}'
behind = 'âĢ${count}'
stashed = 'ïĢ '
modified = 'ï '
staged = '[++\($count\)](green)'
renamed = 'ïŠķ '
deleted = 'ï '
# Shows kubernetes context and namespace
[kubernetes]
format = 'via [óąū $context\($namespace\)](bold purple) '
disabled = false
# ---
[vagrant]
disabled = true
[docker_context]
disabled = true
[helm]
disabled = true
[python]
disabled = true
[nodejs]
disabled = true
[ruby]
disabled = true
[terraform]
disabled = true
[line_break]
disabled = false
I want to keep new line for prompt in PS1 but it's not in warp setting option. I tried setting line_break disabled to false but the prompt still single line. Here's my
starship.toml
for more context
@kankunnawat could you please take a look at https://github.com/warpdotdev/Warp/issues/5052? Wondering if anything there might help with this. Are you on Zsh/Bash/Fish? If on Zsh/Fish, you can do this at the rcfiles level too (the command for this should've popped up in an SLP onboarding block when you updated Warp)!
@Advait-M I'm on Zsh. Just check on that issue and adding this PROMPT="${PROMPT}"$'\n'
at the end of my .zshrc
file solve the problem for me. Appreciate the help! ððŧ
https://github.com/warpdotdev/Warp/issues/5052#issuecomment-2225843500
Ps. Wonder if i could config the line height for terminal, currently it looks too dense between pwd
and cmd prompt
.
I try adding another \n
but it's too much.
Just wanted to give a shout-out to everyone at Warp and especially Advait for getting this feature out. It makes me very happy!
@Advait-M I'm on Zsh. Just check on that issue and adding this
PROMPT="${PROMPT}"$'\n'
at the end of my.zshrc
file solve the problem for me. Appreciate the help! ððŧ #5052 (comment)Ps. Wonder if i could config the line height for terminal, currently it looks too dense between
pwd
andcmd prompt
. I try adding another\n
but it's too much.
Glad to hear that helped @kankunnawat! ð Re line height: hmm, have you tried editing Line Height in Warp Settings > Appearance? Though, this will affect the line height for all lines, not just the first one ð. But perhaps something like 1.4 (compared to our default of 1.2) might be a good setup?
Just wanted to give a shout-out to everyone at Warp and especially Advait for getting this feature out. It makes me very happy!
Thank you for the kind words @ashebanow âĪïļ, glad to hear you're liking it - this comment made me very happy ð !
that works perfectly! Thanks for your help really appreciate. @Advait-M
Howdy folks! We just launched a video interview + blog that goes into a technical deep dive of why this feature took 11 months to build ð . Thought that folks here might be very interested in this ð. Feel free to follow up with technical questions for me on YouTube or Twitter! ð
Like, comment, and subscribe (of course) ð!
[WARP] Note to all users opening this issue:
is there any option to make prompt in one line?
current behavior
one line prompt
How important is this feature to you?
1 (Not too important)