X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.bashrc;h=9074f96b256dadb4f1eaf25907d412e6af37d28f;hb=6c59085e054be7e7a1e311da0f2080119f689a63;hp=518a01433defd24d0d0e90aaad017e07a3f0d7ca;hpb=5223e76a4302c4de131593feea3987398c60445d;p=dotfiles.git diff --git a/.bashrc b/.bashrc index 518a014..9074f96 100644 --- a/.bashrc +++ b/.bashrc @@ -3,34 +3,38 @@ HISTSIZE=100000 HISTFILESIZE=10000 shopt -s checkwinsize shopt -s histappend +set -o vi . /etc/bash_completion -#Variables -export BROWSER=lynx +##Variables +export BROWSER=chromium export EDITOR=vim export TERMINAL=urxvt export TERM=screen export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin export COLORFGBG="default:default" - -#Colors yeeeyyyy +export PYTHONDONTWRITEBYTECODE +export NOTMUCH_CONFIG=~/.mutt/.notmuch-config +export TEXMFHOME=~/.texmf +# +##Colors yeeeyyyy alias ls='ls --color=auto' alias grep='grep --color=auto' -alias email='mutt' -#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 +function getpass { + gpg -d -q --use-agent ~/passwd.gpg | grep "^$1" | awk '{print $3}' +} + +function getuser { + gpg -d -q --use-agent ~/passwd.gpg | grep "^$1" | awk '{print $2}' } -#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 +function addaccount { + gpg -d -o ~/passwd -q --use-agent ~/passwd.gpg + echo -n "user? " + read user + echo -n "pass? " + read pass + echo "$1 $user $pass" >> ~/passwd + shred -u -v -z ~/passwd +}