settings/.bashrc

38 lines
805 B
Bash
Raw Normal View History

2014-04-21 16:54:36 +00:00
if [ -f ~/.git-completion.sh ]; then
source ~/.git-completion.sh
fi
if [ -f ~/.git-prompt.sh ]; then
source ~/.git-prompt.sh
fi
2014-04-21 16:27:52 +00:00
2014-06-09 04:26:07 +00:00
if [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
2014-04-21 16:27:52 +00:00
export EDITOR=vim
export WEBIDE_JDK=/usr/lib/jvm/java-1.7.0-openjdk-amd64
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWUPSTREAM=verbose
GIT_PS1_SHOWCOLORHINTS=1
GIT_PS1_SHOWSTASHSTATE=1
GREEN="\[\033[1;32m\]"
BLUE="\[\033[1;34m\]"
MAGENTA="\[\033[1;35m\]"
YELLOW="\[\033[1;33m\]"
RESET="\[\033[0m\]"
function set_bash_prompt() {
2014-04-21 16:54:20 +00:00
PS1="$GREEN\u@\h$RESET:$BLUE\w$MAGENTA$(__git_ps1 " (%s)")$YELLOW$RESET "
2014-04-21 16:27:52 +00:00
}
PROMPT_COMMAND=set_bash_prompt
2014-07-08 06:27:48 +00:00
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'