← Back to Utilities
CLI Prompt (Bash PS1) Builder
Make yourself a snazzy new CLI prompt and be the envy of your fellow programmers!
Choose Template
Editor
Export
About
Choose a template. NOTE: This will DELETE and REPLACE anything you currently have in the editor!
Load template
Very Simple
Ubuntu PS1 style
Simple Curved
Simple Powerline
Chips
"Hey there!"
Complex Powerline
More Complex Powerline
Colors Example
Load Template
It's recommended that you load a few templates and look at how they're made in the editor, just to get an idea of how things work.
Coming back? You can load your .cliprompt
file in the editor (Project → Upload file).
If you'd like, you can also start from scratch by clicking "Editor"!
Quick usage help for first-time users
If a chip is selected, new chips will be inserted before it. Otherwise, new chips will be inserted at the very end.
A format chip affects all text after it. For example, a "red text color" chip will make all text red until the text color changes or format is cleared.
Chips key
String ANSI escape sequence (color/format) Escape sequence (Unicode/newline) PS1 Escape (info widget) Code/Plugin
Only Bash PS1 is supported at the moment.
Export as Bash PS1 Download Project File Enable editing below textarea (to make quick fixes)
Made with <3 by CerebralDatabank :)
Last updated 2024-06-23
Upcoming features (I'll remove the below items as I finish them):
Exporting to Bash PS1 ✓ (and Bash printf)
Exporting to PowerShell and other platforms
Splitting String chips
Moving chips
Delete all chips?
This will DELETE all of your work and cannot be undone!
It is highly recommended to download a copy of your project if you haven't already. (Project → Download file)
Close
Delete
String
A plain old string, simple as that.
Close
Save
Unicode
Any Unicode character. It's recommended you take advantage of all the icons in Powerline Extended , Box Drawing Characters , and Nerd Fonts !
U+ { ∅ }
Quick select:
Variation selector:
None
Force textual glyph
Force emoji glyph
Add a space afterwards (to accommodate wide Nerd Font icons)Note that this should only be used when the icon "spills out" of the braces above (horizontally), not for general spacing.
Close
Save
Working Directory
This shows the current working directory of the terminal.
Separator:
Default (/)
/
\
|
│
┃
Basename only
Add a space before and after separator
{ ~/Repos/my-project }
Close
Save
Git Status
This shows the status of the current git repo (__git_ps1
in Bash). This may not work on your system if your copy of git doesn't have the necessary script.
Remove leading space (for Bash)
Close
Save
Exit Code Indicator
This shows a colored check or cross mark depending on the exit code of the previous command.
Indicator:
{✓/✗}
{ / }
{ / }
{ / }
Only set FG to green/red
Only set BG to green/red
Only set FG to red if failure
Only set BG to red if failure
Add green/red color
Close
Save
NPC Sequence Delimiter
This delimits non-printable character sequences for Bash.
Separator:
Default (/)
/
\
|
Basename only
Add a space before and after separator
{ ~/Repos/my-project }
Close
Save
Time
“Time, Dr. Freeman? Is it really that time again? It seems as if you only just arrived.” — The G-Man , Half-Life 2 (2004)
HH:mm:ss (14:35:02)
HH:mm (14:35)
hh:mm:ss (02:35:02)
hh:mm tt (02:35 PM)
hh:mm (02:35)
Close
Save
Color
“Mere color, unspoiled by meaning, and unallied with definite form, can speak to the soul in a thousand different ways.” — Oscar Wilde , The Critic as Artist (1891)
Apply color to:
Text (foreground)
Highlight (background)
Color type:
8 colors (4-bit)
256 colors (8-bit)
True color (24-bit)
␛[91m │ rgb(255 85 85)
Close
Save
Move Cursor
WARNING: This can cause issues with line-wrapping long commands in Bash.
Direction:
Up
Down
Forward (right)
Back (left)
Amount: Max
Close
Save
Erase from Cursor
Remove characters from (clear a certain part of) the terminal screen.
WARNING: This can cause issues with line-wrapping long commands in Bash.
Erase
from cursor to end of screen
from cursor to beginning of screen
entire screen
from cursor to end of line
from cursor to beginning of line
entire line
Note that none of these options actually move the cursor itself; you must use a Move Cursor chip for that.
Close
Save
Download File
This is a project file that allows you to restore your project in this web app. To get the actual prompt string code you can use in your terminal, go to the Export section.
It is highly recommended to download this regularly to save your work.
File name: .cliprompt
Download my-prompt .cliprompt
Close
Upload File
Restore a .cliprompt
project file you previously downloaded.
This will DELETE and REPLACE anything you currently have in the editor!
File:
Upload
Close