1 if [ "$PS1" ]; then
   2     shopt -s checkwinsize
   3     if [[ -f /.dcinfo ]]; then
   4         . /.dcinfo
   5         DC_NAME="${SDC_DATACENTER_NAME}"
   6         DC_HEADNODE_ID="${SDC_DATACENTER_HEADNODE_ID}"
   7     fi
   8     if [[ -n "${DC_NAME}" && -n "${DC_HEADNODE_ID}" ]]; then
   9        PS1="[\u@\h (${DC_NAME}:${DC_HEADNODE_ID}) \w]\\$ "
  10     elif [[ -n "${DC_NAME}" ]]; then
  11        PS1="[\u@\h (${DC_NAME}) \w]\\$ "
  12     else
  13        PS1="[\u@\h \w]\\$ "
  14     fi
  15     alias ll='ls -lF'
  16     [ -n "${SSH_CLIENT}" ] && export PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME} \007" && history -a'
  17 fi
  18 
  19 # Load bash completion
  20 [ -f /etc/bash/bash_completion ] && . /etc/bash/bash_completion
  21 
  22 if [ "${TERM}" == "screen" ]; then
  23     export TERM=xterm-color
  24 fi
  25 
  26 svclog() {
  27   if [[ -z "$PAGER" ]]; then
  28     PAGER=less
  29   fi
  30   $PAGER `svcs -L $1`
  31 }
  32 
  33 svclogf() {
  34   /usr/bin/tail -f `svcs -L $1`
  35 }