Merge branch 'master' of github.com:dopefishh/dotfiles
[dotfiles.git] / .bashrc
1 STCONTROL=ignoreboth
2 HISTSIZE=100000
3 HISTFILESIZE=10000
4 shopt -s checkwinsize
5 shopt -s histappend
6 set -o vi
7 . /etc/bash_completion
8
9 #Variables
10 export BROWSER=lynx
11 export EDITOR=vim
12 export TERMINAL=urxvt
13 export TERM=screen
14 export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
15 export COLORFGBG="default:default"
16 export PYTHONDONTWRITEBYTECODE
17 export NOTMUCH_CONFIG=~/.mutt/.notmuch-config
18
19 #Colors yeeeyyyy
20 alias ls='ls --color=auto'
21 alias grep='grep --color=auto'
22 alias mutt='~/downloads/mutt-n/mutt'
23
24 #Watch youtube videos in the terminal
25 function ytview {
26 if [ "$#" -ne "1" ]; then
27 echo "usage $0 yturl"
28 else
29 get_flash_videos -q -f - $1 | cvlc -A alsa -V aa -
30 fi
31 }
32
33 #Mount cloud file storage and start daemon if necessary
34 if ! mountpoint -q ~/copy; then
35 encfs ~/.copy.encr ~/copy
36 fi
37 if ! pidof CopyConsole >> /dev/null; then
38 ~/bin/copy/x86_64/CopyConsole -daemon 2>&1 1>/dev/null
39 fi