A fast, animation-free, hyper-minimal drag-and-drop bash prompt generator for customizing your PS1.
Minimalist Prompt Generator is a free, open-source bash prompt generator and PS1 customization tool that lets developers create beautiful, personalized terminal prompts without writing complex escape sequences by hand.
Built for Linux, macOS, and Windows (WSL) users who want to:
- Customize their bash prompt or zsh prompt visually
- Add git branch, exit codes, and directory info to their terminal
- Use ANSI colors and Nerd Font icons without memorizing codes
- Generate ready-to-use PS1 export code for
.bashrcor.zshrc
💡 No installation required — just open the web app and start building!
| Feature | Description |
|---|---|
| 🎨 Visual Drag-and-Drop Editor | Build prompts by dragging elements — no coding required |
| ⚡ Real-Time Preview | See your prompt changes instantly as you build |
| 🔧 Git Integration | Add branch name, commit hash, dirty markers, ahead/behind counts |
| 🎨 ANSI Color Support | Full 256-color palette with foreground and background options |
| 🔣 Icon Library | Unicode symbols and Nerd Font icons for visual prompts |
| 📋 One-Click Export | Copy generated PS1 code as plain text, HTML, or Markdown |
| 💾 Save/Load Configs | Store and retrieve your custom prompt configurations |
| 🌙 Dark/Light Mode | Comfortable editing in any lighting condition |
| 📱 Responsive Design | Works on desktop, tablet, and mobile browsers |
| 🚀 Zero Dependencies | Pure web app — no packages to install |
- Username (
\u) - Hostname (
\h,\H) - Shell name (
\s) - Terminal device (
\l) - OS name
- Bash version (
\v,\V)
- Full working directory (
\w) - Current directory name (
\W) - Home directory shortcut (
~)
- Time in various formats (
\A,\T,\t,\@) - Date formats (
\d,\D)
- Current branch name
- Commit hash (short)
- Repository status (clean/dirty)
- Ahead/behind remote counts
- Common symbols (
>,<,|,-,_,=,+) - Bracket pairs (
[],(),{},⟨⟩) - Unicode icons (✔, ✖, →, ←, λ, ★, ♥, ⚡)
- OS logos (Linux, Arch, Debian, Ubuntu, Apple, Windows)
- Development icons (Git, GitHub, Python, Node, JS, TS, Rust, Go)
- System icons (folder, home, terminal, clock, calendar)
- Visit bashrcgenerator.vercel.app
- Drag elements from the sidebar to build your prompt
- Customize colors and styling
- Copy the generated code
- Paste into your
~/.bashrcor~/.zshrc
# Clone the repository
git clone https://github.com/shivamksharma/MinimalistPromptGenerator.git
# Navigate to the project
cd MinimalistPromptGenerator
# Install dependencies
npm install
# Start development server
npm run devLight Mode Dark Mode
After building your prompt, copy the generated code and add it to your shell configuration:
# Add to the end of ~/.bashrc
export PS1='YOUR_GENERATED_CODE_HERE'
source ~/.bashrc# Add to the end of ~/.zshrc
export PS1='YOUR_GENERATED_CODE_HERE'
source ~/.zshrc| Problem | Solution |
|---|---|
PS1 escape sequences are cryptic (\[\e[32m\]) |
Visual editor shows results instantly |
| Trial and error in terminal is tedious | Real-time preview before applying |
| Hard to remember color codes | Color picker with named palette |
| Git info requires complex scripting | One-click git elements |
| Icons need font configuration | Preview with Nerd Font support |
This tool is useful for anyone searching for:
- bash prompt generator
- PS1 generator online
- zsh prompt builder
- terminal prompt customization
- bashrc prompt generator
- Linux terminal customization
- shell prompt maker
- command line prompt builder
- PS1 color codes generator
- git branch in bash prompt
| Technology | Purpose |
|---|---|
| React 18 | UI components |
| TypeScript | Type safety |
| Vite | Build tooling |
| Tailwind CSS | Styling |
| dnd-kit | Drag-and-drop |
| Prism.js | Syntax highlighting |
| Lucide React | Icons |
| Vercel | Hosting |
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
This project is licensed under the MIT License — see the LICENSE file for details.
If you find this tool useful, please consider giving it a star! ⭐

