8f5847e7a88f7995fd24935cdd85c13e3a64b56c
[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 SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass
16 export NOTMUCH_CONFIG=/home/mart/.mutt/notmuch-config
17
18 alias ls='ls --color=auto'
19 alias grep='grep --color=auto'
20 alias vi=vim
21
22 set_prompt(){
23 last_c=$?
24 PS1='\u@\h'
25 [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1"
26 PS1="$PS1\w\$ "
27 }
28 PROMPT_COMMAND='set_prompt'