Switch prompt to bold colored text, drop background segments

Background-colored pills were unreadable on dark themes. Use bold
foreground colors instead: cyan NixOS icon, yellow hostname, green path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-08 13:38:13 +01:00
parent 9554152cb5
commit 144d2e55d4

View file

@ -57,19 +57,19 @@
# Nix-shell indicator # Nix-shell indicator
if set -q IN_NIX_SHELL if set -q IN_NIX_SHELL
set_color -b yellow white set_color -o yellow
printf ' nix-shell ' printf '[nix-shell] '
set_color normal set_color normal
printf ' '
end end
# Line 1: hostname ~/path # Line 1: hostname ~/path
set_color -b green white set_color -o cyan
printf ' ' printf ' '
set_color -b yellow white set_color -o yellow
printf ' %s' (hostname) printf ' %s' (hostname)
set_color -b blue white set_color normal
# Path with colored segments printf ' '
set_color -o green
set -l realhome (string escape --style=regex -- $HOME) set -l realhome (string escape --style=regex -- $HOME)
set -l path (string replace -r "^$realhome" '~' $PWD) set -l path (string replace -r "^$realhome" '~' $PWD)
printf '%s' $path printf '%s' $path