#!/bin/ksh SEP="▍" RSEP="▐" #_PS1='\[\033['; #_END='m\]'; #_CLEAR=0; _FG_BLACK=30; _BG_BLACK=40 #_BRIGHT=1; _FG_RED=31; _BG_RED=41 #_DIM=2; _FG_GREEN=32; _BG_GREEN=42 #_UNDER=4; _FG_YELLOW=33; _BG_YELLOW=43 #_BLINK=5; _FG_BLUE=34; _BG_BLUE=44 #_REVERSE=7; _FG_MAGENTA=35; _BG_MAGENTA=45 #_HIDDEN=8; _FG_CYAN=36; _BG_CYAN=46 # _FG_WHITE=37; _BG_WHITE=47 vcs() { if git status >/dev/null 2>&1; then _GIT_BRANCH="$(git branch|grep -F '*'|sed 's/* //')" printf ' %s' "$_GIT_BRANCH" fi } PS1='\[\033[0;7;32m\]$?\[\033[0;32;45m\]$SEP\[\033[0;7;35m\]\A\[\033[0;35m\]$SEP\[\033[0;1;31m\]\u\[\033[0;32m\]@\[\033[1;34m\]\h\[\033[0;36m\]$RSEP\[\033[7m\]\w\[\033[0;36m\]$SEP\[\033[0;32m\]$(vcs)\n\[\033[0;32m\]\$\[\033[0m\] '