X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=4e24d39e902c1f5e124b68c1972a026308f34472;hb=177ef4d1f351c579df880a7af0b58df4c6b4fb53;hp=5d220d7770268ef999a091acceb5c04e315747f0;hpb=c2576b3367457831bd41de24543b4b68d54ae62a;p=dotfiles.git diff --git a/.bashrc b/.bashrc index 5d220d7..4e24d39 100644 --- a/.bashrc +++ b/.bashrc @@ -1,18 +1,34 @@ shopt -s checkwinsize shopt -s histappend -set -o vi -xset -b >/dev/null 2>&1 -#Variables -export COLORFGBG="default:default" +. /usr/share/bash-completion/bash_completion + +export TERMINAL=urxvtc export EDITOR=vim +export TERM=screen +export BROWSER=firefox + export HISTFILESIZE=10000 export HISTSIZE=100000 -export PATH=~/home/bin:$PATH -export PYTHONDONTWRITEBYTECODE -export PYTHONPATH=~/home/lib/python2.7/site-packages -export STCONTROL=ignoreboth -export TERM=screen -export TERMINAL=urxvt -export LD_LIBRARY_PATH=/home/marlub/home/lib64/:/home/marlub/home/lib/:/home/marlub/home/include -export PKG_CONFIG_PATH=/home/marlub/home/lib64/pkgconfig/ +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'