Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Warp not respecting default shell

Open paymog opened this issue 2 years ago • 8 comments

Discord username (optional)

No response

Describe the bug

When I open a new tab in Warp I see starting zsh but then it seems that zsh doesn't start.

image

However, if I then manually start zsh, I see what I expect

image

To Reproduce

Don't know how to reproduce unfortunately

Expected behaviour

I expect zsh to start when I open a new warp tab

Screenshots

I've attached screenshots above

Operating System

MacOS

OS Version

12.5

Shell Version

zsh 5.9 (arm-apple-darwin21.3.0)

Warp Version

v0.2022.09.07.14.56.stable_00

Additional context

No response

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

paymog avatar Sep 14 '22 15:09 paymog

oh wait, it seems warp does load my shell because my aliases are there, but it seems that vim mode and other such aspects of my customized shell aren't loaded by default.

paymog avatar Sep 14 '22 15:09 paymog

Hi @paymog, I'm Danny, Support Engineer with Warp. Sorry you're having these issues with the app. You're correct in that vim mode isn't currently supported but we do have a feature request out for support, #159, so please 👍 that one as it helps us gauge interest.

Now for your other issues, my guess is that you normally have a custom prompt and that Warp is unable to parse it. For example we don't support multi-line or right sided custom prompts (PS1) at the moment.

You can check whether it’s something in your dotfiles by setting up clean configs: Set ZDOTDIR=/ in your ~/.zshenv file. This forces Zsh to run with zero configs.

You can disable parts of your dotfiles just for Warp by using this conditional statement:


if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
##### WHAT YOU WANT TO DISABLE FOR WARP - BELOW

# Whatever you want to disable

##### WHAT YOU WANT TO DISABLE FOR WARP - ABOVE
fi

We have a list of incompatible tools in our documentation: https://docs.warp.dev/help/known-issues#list-of-incompatible-tools

I hope this helps get you up and running.

dannyneira avatar Sep 14 '22 22:09 dannyneira

Hey @paymog, you need to enable Honor user's custom prompt (PS1) in the Preferences > Features page. Make sure your prompt doesn't have a right side to it and it should work.

Soromeister avatar Sep 15 '22 19:09 Soromeister

@paymog any luck with zsh startup by running clean configs?

dannyneira avatar Sep 16 '22 20:09 dannyneira

I think it was my custom prompt which has stuff on the right hand side. I use vim mode with zsh - if I fix up my prompt to remove stuff on the RHS, would we expect warp to work with the zsh vim mode?

paymog avatar Sep 16 '22 22:09 paymog

@paymog , I use Starship Prompt and I recommend it. It's pretty easy to setup and to make it work in Warp you need to make sure the below:

  • No right side stuff. It's not supported
  • No multiline terminal. It will get crunched to one line anyway, so make sure input is on the same line as the prompt.

Soromeister avatar Sep 19 '22 15:09 Soromeister

Awesome thanks for the tip @Soromeister! I'll give it a shot. Hoping there are good guides for getting to work with zprezto without adding extra bloat 🤞

EDIT: does starship have vim mode? Quick search of the docs make it seem like it doesn't.

paymog avatar Sep 19 '22 17:09 paymog

@paymog no vim-mode at this moment, but we do have an FR #159 out for that support. Please +1 that one as it helps us gauge interest.

Please let us know if you're still having issues with shell after trying the recommendations above.

dannyneira avatar Sep 19 '22 21:09 dannyneira

Any updates on this @paymog ?

dannyneira avatar Sep 27 '22 20:09 dannyneira

I think we can close this out, I'll wait for vim mode to be natively supported.

paymog avatar Sep 27 '22 22:09 paymog