thing
[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=chromium
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 export TEXMFHOME=~/.texmf
19 #
20 ##Colors yeeeyyyy
21 alias ls='ls --color=auto'
22 alias grep='grep --color=auto'
23
24 function getpass {
25 gpg -d -q --use-agent ~/passwd.gpg | grep "^$1" | awk '{print $3}'
26 }
27
28 function getuser {
29 gpg -d -q --use-agent ~/passwd.gpg | grep "^$1" | awk '{print $2}'
30 }
31
32 function addaccount {
33 gpg -d -o ~/passwd -q --use-agent ~/passwd.gpg
34 echo -n "user? "
35 read user
36 echo -n "pass? "
37 read pass
38 echo "$1 $user $pass" >> ~/passwd
39 shred -u -v -z ~/passwd
40 }