byobu-prompt(1) byobu byobu-prompt(1)

# [NAME](#NAME)

byobu-prompt, byobu-enable-prompt, byobu-disable-prompt - add and remove a nice color prompt with a previous command timer to your shell configuration

# [SYNOPSIS](#SYNOPSIS)

**byobu-prompt**

[**byobu-enable-prompt**](#byobu_enable_prompt)

[**byobu-disable-prompt**](#byobu_disable_prompt)

# [DESCRIPTION](#DESCRIPTION)

Byobu provides a special PS0 and PS1 prompt command, compatible with Bash shells. It will display the previous command's total runtime and exit code, if it's not zero. It will use 3 separate colors for the local username, hostname, and the current working directory.

**byobu-enable-prompt** will add one line to your *~/.bashrc*.

You can safely remove the line from your *~/.bashrc*, which ends in **#byobu-prompt**.

**byobu-disable-prompt** will remove its color configuration from *~/.bashrc*.

**byobu-prompt** is an interactive wrapper of the previous two tools.

# [BUGS](#BUGS)

This is currently only compatible with [**bash(1)**](/man/os/byobu/bash.1).

# [SEE ALSO](#SEE_ALSO)

[**bash**(1)](/man/os/byobu/bash.1)

[**https://byobu.org**](https://byobu.org)

# [AUTHOR](#AUTHOR)

This manpage and the utility were written by Dustin Kirkland &lt;kirkland@byobu.org&gt; for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.

The complete text of the GNU General Public License can be found in */usr/share/common-licenses/GPL* on Debian/Ubuntu systems, or in */usr/share/doc/fedora-release-\*/GPL* on Fedora systems, or on the web at *http://www.gnu.org/licenses/gpl.txt*.

16 January 2024 byobu

---

Document: byobu-enable-prompt(1) from byobu 7.23-r0 (Chainguard OS)
Source: https://github.com/dustinkirkland/byobu
