X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=850239819e4f2e811faccb787ae88bc00680fb76;hb=cc4abfb3797934ea3fa1d7e93ab85a93fbf259b1;hp=55fc625e4cee2273aaf760770380eeaa23d85dd0;hpb=433e6a3a733f3836a0a11dcc710ba441a7bb945b;p=dotfiles.git diff --git a/.bashrc b/.bashrc index 55fc625..8502398 100644 --- a/.bashrc +++ b/.bashrc @@ -1,18 +1,27 @@ 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/ -export PKG_CONFIG_PATH=/home/marlub/home/lib64/pkgconfig/ +export HISTCONTROL=ignoreboth + +alias ls='ls --color=auto' +alias grep='grep --color=auto' + +#[ ! -s ~/.config/mpd/pid ] && mpd + +source /usr/share/git/completion/git-prompt.sh +set_prompt(){ + last_c=$? + PS1='\u@\h' + [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1" + PS1="$PS1\w$(__git_ps1)\n\$ " +} +PROMPT_COMMAND='set_prompt'