Sha256: 48f3d88694a2834ff195d1a3d7f122a096c184bb129e9573825c8ca65318f892

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

source /usr/local/etc/bash_completion.d/git-completion.bash

function parse_git_branch {
  git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1] /'
}

function proml {
  local        BLUE="\[\033[0;34m\]"
  local         RED="\[\033[0;31m\]"
  local   LIGHT_RED="\[\033[1;31m\]"
  local       GREEN="\[\033[0;32m\]"
  local LIGHT_GREEN="\[\033[1;32m\]"
  local       WHITE="\[\033[1;37m\]"
  local  LIGHT_GRAY="\[\033[0;37m\]"
  local        CYAN="\[\033[0;36m\]"
  local   NO_COLOUR="\[\033[0m\]"
  case $TERM in
    xterm*)
    TITLEBAR='\[\033]0;\u@\h:\w\007\]'
    ;;
    *)
    TITLEBAR=""
    ;;
  esac

PS1="${TITLEBAR}\
$BLUE\$(parse_git_branch)\
$NO_COLOUR\h:$CYAN\w\
 $NO_COLOUR\u\$ "
PS2='> '
PS4='+ '
}
proml

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flombe-0.1.0.2 cookbooks/utils/templates/default/dot.profile.erb