Skip to content

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. Open Settings > Appearance.
  2. Under Input, set Input type to Warp or Shell (PS1).

When using the Warp prompt, you can right-click the prompt area to copy the entire prompt, working directory, current git branch, git uncommitted file count, and more.

When using a Shell prompt, you can right-click the prompt area to copy the entire prompt, or select any part of the prompt in previously run blocks in your session.

Warp has a native prompt that displays context chips showing information such as your current working directory, git branch, svn status, Kubernetes context, pyenv, 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. Right-click the prompt area and select Edit prompt.

Right-click context menu showing the Edit prompt option

  1. Select Warp Prompt.
  2. Drag and drop context chips to configure which pieces of information your prompt displays.

Git and Subversion context chips show which branch you are on locally, as well as the number of uncommitted changed files. This includes any new files, modified files, and deleted files that are staged or unstaged.

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. 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.

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’re having issues with prompts, please see below or our Known Issues for more troubleshooting steps.

Some ~/.config/starship.toml settings are known to cause errors in Warp. # or DEL the following lines to resolve known errors:

# Get editor completions based on the config schema
'' = 'https://starship.rs/config-schema.json'
# Disables the custom module
[custom]
disabled = false

For fish shell, optional for bash|zsh, disable the multi-line prompt in Starship by putting the following in your ~/.config/starship.toml:

[line_break]
disabled = true

You may also see an error relating to timeout. You can set the command_timeout variable in your ~/.config/starship.toml to fix this. See more in the starship docs.

Starship prompt may not render properly if your default shell is /bin/bash. To workaround the issue, we recommend you upgrade bash, find the path with echo $(which bash), then put the path in Settings > Features > Session > “Startup shell for new sessions”.

If you want to restore the additional line after the Starship prompt on zsh, add the following to the bottom of your ~/.zshrc file: PROMPT="${PROMPT}"$'\n'

When installing the Powerlevel10k (P10k) prompt, we recommend you use the Meslo Nerd Font.

P10K may display the arrow dividers as grey instead of color. The color for those chars is rendered grey due to Warp’s minimum contrast setting. To workaround this issue, go to Settings > Appearance > Text > Enforce minimum contrast and set it to “Never”.

Example of the grey dividers in p10k

Warp does support p10k version 1.19.0 and above. Ensure you have the latest version installed and restart Warp after the installation/update of p10k. Then enable the custom prompt as stated above and it should work.

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

Although Warp does have support for prezto’s prompt, enabling the prezto utility module in the .zpreztorc is not supported as with many other autocompletion plugins that are incompatible.

We advise using Warp’s default prompt or installing one of the supported tools, see Compatibility Table. You can disable unsupported prompts for Warp as such:

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 breaks Warp and your custom prompt will not be able to be visible with this on. If you’re coming from iTerm2 please check your dotfiles for it. We advise disabling the integration for Warp like so:

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