Hacker Public Radio

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


Listen Later

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'\] '
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Infinite Monkey Cage by BBC Radio 4

The Infinite Monkey Cage

2,087 Listeners

Click Here by Recorded Future News

Click Here

416 Listeners

Hacker And The Fed by Chris Tarbell & Hector Monsegur

Hacker And The Fed

168 Listeners