Merge branch 'master' of https://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 . /etc/bash_completion
7
8 #Variables
9 export BROWSER=lynx
10 export EDITOR=vim
11 export TERMINAL=urxvt
12 export TERM=screen
13 export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
14 export COLORFGBG="default:default"
15
16 #Colors yeeeyyyy
17 alias ls='ls --color=auto'
18 alias grep='grep --color=auto'
19 alias email='mutt'
20
21 #Watch youtube videos in the terminal
22 function ytview {
23 if [ "$#" -ne "1" ]; then
24 echo "usage $0 yturl"
25 else
26 get_flash_videos -q -f - $1 | cvlc -A alsa -V aa -
27 fi
28 }
29
30 #Mount cloud file storage and start daemon if necessary
31 if ! mountpoint -q ~/copy; then
32 encfs ~/.copy.encr ~/copy
33 fi
34 if ! pidof CopyConsole >> /dev/null; then
35 ~/bin/copy/x86_64/CopyConsole -daemon 2>&1 1>/dev/null
36 fi