nix-prompt: a clean and modular bash prompt with just the right amount of customization options
github.com·22h·
💻Terminal UIs
Preview
Report Post

>_ nix-prompt

A clean, modular Bash prompt with just the right amount of features.

Designed to be readable, hackable, and safe to source in .bashrc.

No framework. No dependencies. No magic.

Note on the name: nix-prompt is not something specific to NixOS. The name comes from my channel, NIX tricks, where "nix" refers to Unix-like systems in general. This is a Bash prompt and works on any Linux or Unix-like system.

Features

🛠️ Modular segments

  • Identity (user / host / context)
  • Timestamp
  • Path
  • Git status
  • Prompt symbol

🎨 Modern aesthetics

  • Truecolor support
  • Nerd Font icons

👀 Context-aware

  • Root vs user
  • SSH sessions
  • Last error state
  • Git integration

Requirements

  • Bash ≥ 4
  • Git (optional, for git segme…

Similar Posts

Loading similar posts...