X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=inline;f=.bashrc;h=fa7b57d63b3a585e55f8bdb929cc7a9cb40e0e6c;hb=290ffa4f89a86d1b98329119cf49ee7e98ac9f6b;hp=d7eb318ece0cdff42c680163ec74867a419fde2d;hpb=40783e3fe075693df89e9f31f703c403afeb5bc6;p=dotfiles.git diff --git a/.bashrc b/.bashrc index d7eb318..fa7b57d 100644 --- a/.bashrc +++ b/.bashrc @@ -6,7 +6,7 @@ shopt -s histappend export TERMINAL=urxvtc export EDITOR=vim export TERM=screen -export BROWSER= +export BROWSER=firefox export HISTFILESIZE=10000 export HISTSIZE=100000 @@ -14,3 +14,14 @@ 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'