Skip to content

Instantly share code, notes, and snippets.

@azazar
Last active February 18, 2025 12:17
Show Gist options
  • Save azazar/24b840498ac2c41fc6914dcfe83f4af6 to your computer and use it in GitHub Desktop.
Save azazar/24b840498ac2c41fc6914dcfe83f4af6 to your computer and use it in GitHub Desktop.
My bash prompt
# Set terminal title (optional)
PS1="\[\e]0;\u@\h: \w\a\]"
# Segment 1: Dark Gray background (100) with Light Yellow text (93)
PS1+=$'\[\e[100;93m\] \u@\h '
# Arrow from Segment 1 to Segment 2:
# Arrow's foreground is set to dark gray (90)
# Arrow's background is set to Light Blue (104)
PS1+=$'\[\e[90;104m\]\uE0B0'
# Segment 2: Light Blue background (104) with Black text (30)
PS1+=$'\[\e[104;30m\] \w '
# Arrow from Segment 2 to default background:
# Arrow's foreground is bright blue (94) and background resets to default (49)
PS1+=$'\[\e[94;49m\]\uE0B0'
# Reset formatting (no trailing prompt symbol)
PS1+=$'\[\e[0m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment