X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=7b2a7acddd987333828a0db49866ee8c049d1934;hb=ac6575b40b3efd1320544a8f6deb14fb26091813;hp=a5df78af23fceee8f2ad637b5a023c61fbab1d2d;hpb=b5caa249d5711c13116a8ff7e0556766fce4666b;p=dotfiles.git diff --git a/.bashrc b/.bashrc index a5df78a..7b2a7ac 100644 --- a/.bashrc +++ b/.bashrc @@ -1,37 +1,30 @@ -STCONTROL=ignoreboth -HISTSIZE=100000 -HISTFILESIZE=10000 shopt -s checkwinsize shopt -s histappend -set -o vi -. /etc/bash_completion -#Variables -export BROWSER=lynx -export EDITOR=vim +. /usr/share/bash-completion/bash_completion + export TERMINAL=urxvt +export EDITOR=vim export TERM=screen -export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin -export COLORFGBG="default:default" -export PYTHONDONTWRITEBYTECODE +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 PATH=$PATH:~/projects/clean/bin -#Colors yeeeyyyy alias ls='ls --color=auto' alias grep='grep --color=auto' +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'