Warp
Warp copied to clipboard
Warp not respecting default shell
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.

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

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
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.
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.
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.
@paymog any luck with zsh startup by running clean configs?
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 , 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.
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 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.
Any updates on this @paymog ?
I think we can close this out, I'll wait for vim mode to be natively supported.