X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=28063f1ca448fa83757f03fb7cbe297ee8a30631;hb=2ed6d7793226220a23804b216a10063f44391217;hp=b4014236c9cdbeea559dad36dccae5032a181dc4;hpb=13da7d94ff5f1764343a5d83d419b8dca8eecd97;p=dotfiles.git diff --git a/.bashrc b/.bashrc index b401423..28063f1 100644 --- a/.bashrc +++ b/.bashrc @@ -1,39 +1,27 @@ -STCONTROL=ignoreboth -HISTSIZE=100000 -HISTFILESIZE=10000 shopt -s checkwinsize shopt -s histappend -set -o vi -. /etc/bash_completion -#Variables -export BROWSER=lynx +. /usr/share/bash-completion/bash_completion + +export TERMINAL=urxvtc export EDITOR=vim -export TERMINAL=urxvt export TERM=screen -export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin -export COLORFGBG="default:default" -export PYTHONDONTWRITEBYTECODE -export NOTMUCH_CONFIG=~/.mutt/.notmuch-config +export BROWSER=firefox + +export HISTFILESIZE=10000 +export HISTSIZE=100000 +export HISTCONTROL=ignoreboth -#Colors yeeeyyyy alias ls='ls --color=auto' alias grep='grep --color=auto' -alias mutt='~/downloads/mutt-n/mutt' -#Watch youtube videos in the terminal -function ytview { - if [ "$#" -ne "1" ]; then - echo "usage $0 yturl" - else - get_flash_videos -q -f - $1 | cvlc -A alsa -V aa - - fi -} +[ ! -s ~/.config/mpd/pid ] && mpd -#Mount cloud file storage and start daemon if necessary -if ! mountpoint -q ~/copy; then - encfs ~/.copy.encr ~/copy -fi -if ! pidof CopyConsole >> /dev/null; then - ~/bin/copy/x86_64/CopyConsole -daemon 2>&1 1>/dev/null -fi +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)\$ " +} +PROMPT_COMMAND='set_prompt'