X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=7b2a7acddd987333828a0db49866ee8c049d1934;hb=85e3fa2486dcfbd40a6814a2402b4ac749d4e75c;hp=c7c30d0c25ff35c3ab5ac4ee1236dc102121c417;hpb=3ce5198b704dba3e81a61d67e431f45a0f4e3ff4;p=dotfiles.git diff --git a/.bashrc b/.bashrc index c7c30d0..7b2a7ac 100644 --- a/.bashrc +++ b/.bashrc @@ -3,7 +3,7 @@ shopt -s histappend . /usr/share/bash-completion/bash_completion -export TERMINAL=urxvtc +export TERMINAL=urxvt export EDITOR=vim export TERM=screen export BROWSER=firefox @@ -12,7 +12,19 @@ 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 + +export PATH=$PATH:~/projects/clean/bin + alias ls='ls --color=auto' alias grep='grep --color=auto' +alias vi=vim -[ ! -s ~/.config/mpd/pid ] && mpd +set_prompt(){ + last_c=$? + PS1='\u@\h' + [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1" + PS1="$PS1\w\$ " +} +PROMPT_COMMAND='set_prompt'