update
[dotfiles.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index d7eb318..4e24d39 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -6,11 +6,29 @@ shopt -s histappend
 export TERMINAL=urxvtc
 export EDITOR=vim
 export TERM=screen
-export BROWSER=
+export BROWSER=firefox
 
 export HISTFILESIZE=10000
 export HISTSIZE=100000
 export HISTCONTROL=ignoreboth
 
+export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass
+
+export PATH=\
+$PATH:\
+/usr/local/texlive/2014/bin/x86_64-linux:\
+/opt/clean/bin:\
+/opt/MATLAB/2014b/bin
+
+
 alias ls='ls --color=auto'
 alias grep='grep --color=auto'
+alias vi=vim
+
+set_prompt(){
+       last_c=$?
+       PS1='\u@\h'
+       [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1"
+       PS1="$PS1\w\$ "
+}
+PROMPT_COMMAND='set_prompt'