X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=c04841584fd73fcea69a6cb266370ef94922b443;hb=159915cd7d8d22af8f27c7bc735079c4347877b2;hp=4886f331247c597ec03d1078dcd4f4fbafc37f60;hpb=255090fd2c6f2e4f02ff5c35c473ffff985e1dcb;p=dotfiles.git diff --git a/.bashrc b/.bashrc index 4886f33..c048415 100644 --- a/.bashrc +++ b/.bashrc @@ -1,24 +1,24 @@ -#Shopt options shopt -s checkwinsize shopt -s histappend -#Disable bell -xset -b >/dev/null 2>&1 +. /usr/share/bash-completion/bash_completion -#Set vim mode and macros -set -o vi -bind '"\es":"0isudo $a"' - -#Variables -export COLORFGBG="default:default" +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 HISTCONTROL=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/ + +alias ls='ls --color=auto' +alias grep='grep --color=auto' + +set_prompt(){ + last_c=$? + PS1='\u@\h' + [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1" + PS1="$PS1\w\$ " +} +PROMPT_COMMAND='set_prompt'