Sha256: 33d43fae033ffdc62968dbbf7b554788e6cc1fd1c83e0c86674de2052e631eff

Contents?: true

Size: 921 Bytes

Versions: 6

Compression:

Stored size: 921 Bytes

Contents

# .bash_profile configuration
#
# Generated by Chef for <%= node[:fqdn] %>
# Local modifications will be overwritten.
#

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

6 entries across 6 versions & 1 rubygems

Version Path
flombe-0.1.0.8 cookbooks/utils/templates/default/dot.profile.erb
flombe-0.1.0.7 cookbooks/utils/templates/default/dot.profile.erb
flombe-0.1.0.6 cookbooks/utils/templates/default/dot.profile.erb
flombe-0.1.0.5 cookbooks/utils/templates/default/dot.profile.erb
flombe-0.1.0.4 cookbooks/utils/templates/default/dot.profile.erb
flombe-0.1.0.3 cookbooks/utils/templates/default/dot.profile.erb