Skip to content

Terminal > Terminal appearance

Terminal prompt

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Configure Warp's native prompt with context chips or use your own Shell prompt (PS1).

Warp supports two prompt types: the Warp prompt and the Shell prompt (PS1).

To switch your prompt type:

  1. In the Warp app, open Settings > Appearance.
  2. Under Input, set Input type to Warp or Shell (PS1).

With the Warp prompt, open the prompt context menu to copy the entire prompt or individual context chip values, such as the working directory or Git branch. Right-click the prompt, or use Shift+right-click if your right-click behavior is set to paste.

With a Shell prompt, open the prompt context menu to copy the entire prompt. You can also select part of the prompt in a previously run block.

Warp’s native prompt displays context chips for information such as your current working directory, Git branch, Subversion status, Kubernetes context, Python environment, date, and time. The Warp prompt is the default when Input type is set to Warp.

To customize which context chips your Warp prompt displays:

  1. In the Warp app, open Settings > Appearance.
  2. Under Input, click the prompt preview below Input type.
  3. In Edit prompt, select Warp terminal prompt.
  4. Drag context chips into the dashed box and arrange them in the order you want.
  5. Click Save changes.

Git and Subversion context chips show your local branch and uncommitted changes. Git chips can also show remote tracking status and diff statistics.

The Kubernetes context chip shows relevant information when you’re using one of the following commands:

kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold|kubent|kubecolor|cmctl|sparkctl|etcd|fubectl

You can use a Shell prompt instead of the Warp prompt by configuring the PS1 variable or installing a supported shell prompt plugin (see Shell prompt compatibility table).

To enable the Shell prompt:

  1. In the Warp app, open Settings > Appearance.
  2. Under Input, set Input type to Shell (PS1).
  3. Configure your PS1 variable in your shell’s RC file, or install a supported prompt plugin.

PS1 is the shell variable for the primary prompt string, which the terminal displays before your command-line input.

The Shell prompt supports multi-line or right-sided prompts in zsh and fish, not bash. However, you can’t have a multiline right-side prompt, only a multiline left prompt.

ShellToolDoes it work?
bash | zshPS1Working
bash | zsh | fish | pwshStarshipWorking*
bash | zsh | fish | pwshoh-my-poshWorking
zshPowerlevel10kWorking*
zshSpaceshipWorking*
zshoh-my-zshWorking
zshpreztoWorking*
sshWorking
bashoh-my-bashNot supported
bashbash-itNot supported
bashSBPNot supported
bashsynth-shell-promptNot supported
bash | zshPowerline-shellNot supported
zshzplugNot supported
fishtideNot supported
fishoh-my-fishNot supported

If you have prompt issues, review the notes below and debug your shell RC files.

To keep a Starship prompt on one line, add the following to ~/.config/starship.toml:

[line_break]
disabled = true

Set disabled to false to put the input on a new line. For other prompt-wide settings, including command_timeout, see the Starship prompt configuration.

Starship may not render properly if your default shell is /bin/bash. To work around the issue, upgrade Bash, find its path with command -v bash, then select that path under Settings > Features > Session > Default shell for new sessions in the Warp app.

To put the input on a new line after the Starship prompt in zsh, add PROMPT="${PROMPT}"$'\n' to the bottom of ~/.zshrc.

Powerlevel10k recommends the Meslo Nerd Font.

Powerlevel10k may display arrow dividers in gray because of Warp’s minimum contrast setting. To work around the issue, go to Settings > Appearance > Text > Enforce minimum contrast and select Never.

Example of the grey dividers in p10k

Example of the grey dividers in p10k.

Warp supports Powerlevel10k version 1.19.0 and later. Install the latest version, restart Warp, then switch to the Shell prompt.

Warp doesn’t support some Powerlevel10k features, including transient prompts and gradients.

This prompt can cause an issue with typeahead in Warp’s input editor. To work around the issue, run echo "SPACESHIP_PROMPT_ASYNC=FALSE" >>! ~/.zshrc.

Warp supports the Prezto prompt, but not the Prezto utility module or other incompatible autocompletion plugins.

Use Warp’s default prompt or install a tool from the Shell prompt compatibility table. To disable an unsupported prompt only in Warp, wrap its setup in this condition:

Terminal window
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
##### WHAT YOU WANT TO DISABLE FOR WARP - BELOW
# Unsupported Custom Prompt Code
##### WHAT YOU WANT TO DISABLE FOR WARP - ABOVE
fi

The iTerm2 shell integration is incompatible with Warp and can hide your custom prompt. If you migrated from iTerm2, check your dotfiles and disable the integration in Warp:

Terminal window
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
##### WHAT YOU WANT TO DISABLE FOR WARP - BELOW
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
##### WHAT YOU WANT TO DISABLE FOR WARP - ABOVE
fi