this post was submitted on 02 Aug 2023
57 points (100.0% liked)

Unixporn

15380 readers
1 users here now

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms

founded 5 years ago
MODERATORS
 

Info

Gallery

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

Can you please share your bash prompt?

[–] [email protected] 6 points 1 year ago
reset="\[\e[m\]"
blue="\[\e[00;34m\]"
purple="\[\e[00;35m\]"
cyan="\[\e[00;36m\]"
yellow="\[\e[00;33m\]"
blink_yellow="\[\e[05;33m\]"

first_line="${reset}β”Œβ”€[${blue}\u${reset}]-[${cyan}\h${reset}]-[${yellow}\w${reset}]"
second_line="\n└─[${blink_yellow}\$${reset}] "

if [ -f /usr/share/git/git-prompt.sh ]; then
    source /usr/share/git/git-prompt.sh
    GIT_PS1_SHOWCOLORHINTS=1
    PROMPT_COMMAND="__git_ps1 '$first_line' '$second_line' ' $purpleξ‚  %s';"
else
    # if the file doesn't exist create prompt directly with PS1
    PS1="$first_line$second_line"
fi
unset reset blue purple cyan yellow blink_yellow first_line second_line

It doesn't have to be so long I just don't like when people put everything in one line and its impossible to understand.

[–] [email protected] 2 points 1 year ago