Tag: bash

  • Bash Prompt Colors

    This is currently my bash prompt. Locate this code in any script run by bash at startup. I have it in ~/.bashrc GREEN=”\[\e[1;32m\]” BLUE=”\[\e[1;34m\]” YELLOW=”\[\e[1;33m\]” CYAN=”\[\e[1;36m\]” RESET=”\[\e[m\]” BRANCH=$CYAN PS1=”$GREEN\u@\h $BLUE\w $BRANCH\$(git branch 2>/dev/null | grep ‘^*’ | colrm 1 2 | parens | tr -d ‘\n’)$BLUE\$ $RESET” This relies on parens, a simple program that…