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:
parent
9554152cb5
commit
144d2e55d4
1 changed files with 10 additions and 10 deletions
|
|
@ -57,22 +57,22 @@
|
||||||
|
|
||||||
# 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
|
||||||
set_color normal
|
set_color normal
|
||||||
printf '\n'
|
printf '\n'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue