Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr3691 :: Starship.rs the best prompt I don't use

Bash prompts

<< First, < Previous, Latest >>

Hosted by Klaatu on Monday 2022-09-26 is flagged as Clean and is released under a CC-BY-SA license.
Tags: bash,ps1,terminal,linux.

Listen in ogg, spx, or mp3 format. | Comments (0)

Here's the snippets I use in my .bashrc file.

RED='\033[0;31m'
PLAIN='\033[0m' # No Color
WHITE='\e[97m'
GREEN='\e[0;32m'
PURPLE='\e[35;35m'
CYAN='\e[36;36m'

JAVA_VERSION=`java --version | head -1 | cut -f2 -d' '`

IP=$(hostname -I | awk '{print $1;}' )
source /usr/doc/git-2.35.1/contrib/completion/git-prompt.sh
PS1='\! [\['$GREEN'\]$(hostname -s) $IP\['$PLAIN'\]] [\['$CYAN'\]$(pwd -P)\['$PLAIN'\]] $(__git_ps1 "[\['$PURPLE'\] %s\['$PLAIN'\]]")[☕ '$JAVA_VERSION']\n\['$GREEN'\]$\['$PLAIN'\] '

Show Transcript

Automatically generated using whisper

whisper --model tiny --language en hpr3691.wav

<< First, < Previous, Latest >>


Comments

Subscribe to the comments RSS feed.

<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?