All pastes #558906 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-11 15:28 UTC
rendered paste body
if [[ $- != *i* ]] ; then
	return
fi

if [[ -f ~/.dir_colors ]] ; then
	eval $(dircolors -b ~/.dir_colors)
elif [[ -f /etc/DIR_COLORS ]] ; then
	eval $(dircolors -b /etc/DIR_COLORS)
fi

PPROFILE=/usr/portage/profiles/default-linux/amd64/profile.bashrc

alias ls='ls --color=auto'
alias grep='grep --colour=auto'
alias emerge='sudo emerge'
alias sync="emerge --sync && sudo sed -i -e 's/\"-ffast-math\" //g' $PPROFILE"
alias revdep-rebuild="sudo revdep-rebuild"

case ${TERM} in
	xterm*|rxvt*|Eterm|aterm|kterm|gnome)
		PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
		;;
	screen)
		PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
		;;
esac

export PATH=$PATH:/sbin:/usr/sbin

export PS1="\[\033[1;34m\][\[\033[1;37m\]\t\[\033[1;34m\]]\[\033[1;34m\][\[\033[1;37m\]\d\[\033[1;34m\]]\n[\[\033[1;37m\]\u\[\033[1;34m\] - \[\033[1;37m\]\W\[\033[1;34m\]]  \[\033[1;0m\]"