File: //etc/bash.bashrc
# dont write history files
unset HISTFILE
export MYSQL_HISTFILE=/dev/null
# setup site env
export DB_USER=$ATOMIC_SITE_ID
export DB_NAME=$ATOMIC_SITE_ID
# setup easy mysql connections
export MYSQL_PWD=$DB_PASSWORD
alias mysql='mysql -h 127.0.0.1 -u$ATOMIC_SITE_ID'
alias mysqldump='mysqldump -h 127.0.0.1 -u$ATOMIC_SITE_ID'
if [ ! "" = "${PHP_VERSION}" ]; then
alias php="/usr/local/php${PHP_VERSION}/bin/php"
export PATH="/usr/local/php${PHP_VERSION}/bin:$PATH"
fi
# Aliases for non-interactive sessions for Rewind
shopt -s expand_aliases
# return if not running interactively
[ -z "$PS1" ] && return
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# set a fancy prompt
PS1='\[\033[38;5;124m\]${LOGNAME}@$DOMAIN_NAME\[\033[00m\]:\[\033[38;5;160m\]\w\[\033[00m\]\$ '
export LS_OPTIONS='--color=auto'
eval "$(dircolors)"
alias ll='ls $LS_OPTIONS -lah'
alias ls='ls --color=auto'