CLI
Prompt
Builder
← Back to Utilities
CLI
Prompt
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 (no colors)
Ubuntu PS1 style
Curved Arrow
Simple Powerline
Chips
"Hey there!"
Complex Powerline
More Complex Powerline
Colors Example
Rainbow Stripe
Load Template
First time? 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 tab above (Project → Upload file). Or, you can start from scratch!
Quick usage help for first-time users
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.
If a chip is selected, new chips will be inserted before it. Otherwise, new chips will be inserted at the very end.
Hovering over almost any chip will tell you its exact configuration .
Use arrow keys (← /→ ) to select the previous/next chip , or use Ctrl + ← /→ to move a chip left/right .
Use Delete to delete a chip.
You can save your project as a file by clicking Project → Download file.
Your current project is automatically saved in your browser storage .
(click the above arrow to hide)
Only Bash PS1 and PowerShell are supported at the moment. (PowerShell export does not support all chips yet.)
Export as Bash PS1 Export as PowerShell promptBETA Download Project File Copy output Enable manual editing of output
Made with <3 by CerebralDatabank :)
Last updated 2024‒09‒18
Upcoming features (I'll remove the below items as I finish them):
Exporting to Bash PS1 ✓ (and Bash printf)
Exporting to PowerShell ✓ (half-done) and other platforms
Unicode/Nerd Font search and Unicode/NF name shown when hovering over Unicode chip ✓
Splitting String chips
Moving chips ✓ (can use Ctrl and left/right arrow keys)
Autosave to browser storage ✓
Prompt gallery with community-made prompts 👀 (maybe a little contest??)
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+ { ∅ } Search…
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
Unicode → Search
← Back
Search for a Unicode character by its Unicode name or Nerd Fonts name. Contains all Nerd Fonts characters and some Unicode characters (e.g. box drawing).
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 (3-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