added mailcap, new plugin vim, update xresources and bashrc
[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 export PATH=$PATH:/usr/local/texlive/2014/bin/x86_64-linux
16
17 alias ls='ls --color=auto'
18 alias grep='grep --color=auto'
19 alias vi=vim
20
21 set_prompt(){
22 last_c=$?
23 PS1='\u@\h'
24 [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1"
25 PS1="$PS1\w\$ "
26 }
27 PROMPT_COMMAND='set_prompt'