X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=f115eb686051bced8d816e28fad45088e3f873a3;hb=c52bd7a5978b685e05764c522282f89603f8f15d;hp=518a01433defd24d0d0e90aaad017e07a3f0d7ca;hpb=5223e76a4302c4de131593feea3987398c60445d;p=dotfiles.git diff --git a/.bashrc b/.bashrc index 518a014..f115eb6 100644 --- a/.bashrc +++ b/.bashrc @@ -1,36 +1,31 @@ -STCONTROL=ignoreboth -HISTSIZE=100000 -HISTFILESIZE=10000 shopt -s checkwinsize shopt -s histappend -. /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 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 +export PYTHONSTARTUP=/home/mart/.pythonstartup + +export PATH=$PATH:~/projects/clean/bin -#Colors yeeeyyyy alias ls='ls --color=auto' alias grep='grep --color=auto' -alias email='mutt' +alias vi=vim -#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 +set_prompt(){ + last_c=$? + PS1='\u@\h' + [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1" + PS1="$PS1\w\$ " } - -#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 +PROMPT_COMMAND='set_prompt'