X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=8f5847e7a88f7995fd24935cdd85c13e3a64b56c;hb=8633ce94857ae6999f09b1288eb3c34520aa0c07;hp=d7eb318ece0cdff42c680163ec74867a419fde2d;hpb=40783e3fe075693df89e9f31f703c403afeb5bc6;p=dotfiles.git diff --git a/.bashrc b/.bashrc index d7eb318..8f5847e 100644 --- a/.bashrc +++ b/.bashrc @@ -6,11 +6,23 @@ 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 NOTMUCH_CONFIG=/home/mart/.mutt/notmuch-config + 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'