#
# ~/.bash_config
#
# Ward Truyen's Config for bash

# If not running interactively, stop
[[ $- != *i* ]] && return

# personal aliases
alias la='ls -a'
alias ll='ls -lh'
alias cp='cp -v'
alias mv='mv -v'
alias rm='rm -v'
alias ..='cd ..'

# colored output 
alias ls='ls --color=auto'
alias grep='grep --colour=auto'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'

# Colorful PS1
if [[ ${EUID} == 0 ]] ; then
  # Root
  PS1='[\[\e[37m\]root\[\e[0m\]@\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]]\[\033[00m\]]\#\$ '
else
  # User
  PS1='[\[\e[33m\]\u\[\e[0m\]@\[\e[32m\]\h \[\e[1m\]\W\[\e[0m\]]\#\$ '
fi
