ps1 customize
[dotfiles.git] / .bashrc
1 shopt -s checkwinsize
2 shopt -s histappend
3
4 . /usr/share/bash-completion/bash_completion
5
6 export TERMINAL=urxvtc
7 export EDITOR=vim
8 export TERM=screen
9 export BROWSER=firefox
10
11 export HISTFILESIZE=10000
12 export HISTSIZE=100000
13 export HISTCONTROL=ignoreboth
14
15 alias ls='ls --color=auto'
16 alias grep='grep --color=auto'
17
18 [ ! -s ~/.config/mpd/pid ] && mpd
19
20 source /usr/share/git/completion/git-prompt.sh
21 set_prompt(){
22 last_c=$?
23 PS1='\u@\h'
24 [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1"
25 PS1="$PS1\w$(__git_ps1)\$ "
26 }
27 PROMPT_COMMAND='set_prompt'